Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9186121
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T19:26:46+00:00 2026-06-17T19:26:46+00:00

I have a kendo window that has a form inside it. The form has

  • 0

I have a kendo window that has a form inside it. The form has input elements with a record’s data populated within it. The user may close the window and select a different record to view. When the user does this, I need to show the kendo window again with the same form but with different record data. Here’s what I’m currently doing

    if (!$("#winContainer").data("kendoWindow")) {
        $("#winContainer").kendoWindow({
            modal: true,
            width: "969px",
            height: "646px",
            title: "View Record",
            content: "record.jsp"
        });
    } else {
        $("#winContainer").data("kendoWindow").refresh({url: 'record.jsp'});
    }

    $("#winContainer").data("kendoWindow").center().open();   

The form is contained within record.jsp, and I populate it with JSON data that I previously received from server (via JavaScript referenced in record.jsp). I need to ensure that the window does not show until the new record data is populated in the form. Is this the correct way to do this or is there some better way?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T19:26:47+00:00Added an answer on June 17, 2026 at 7:26 pm

    Instead of creating a new window each time or refreshing its content, I do recommend:

    1. Create a window,
    2. Each the user selects a new record, bind the new data to the window and then open it.

    This way you only need to load the page once.

    You might also consider having the page record.jsp defined as a Kendo UI template in your original page.

    Example:

    Given the following user selectable records:

    var data = [
        { text1: "text1.1", text2: "text1.2" },
        { text1: "text2.1", text2: "text2.2" },
        { text1: "text3.1", text2: "text3.2" },
        { text1: "text4.1", text2: "text4.2" }
    ];
    

    And a form defined as a template with the following HTML:

    <script id="record-jsp" type="text/x-kendo-template">
        <div>
            <p>This is your form with some sample data</p>
            <label>text1: <input type="text" data-bind="value: text1"></label>
            <label>text2: <input type="text" data-bind="value: text2"></label>
        </div>
    </script>
    

    Our JavaScript would be something like:

    // Window initialization
    var kendoWindow = $("<div id='window'/>").kendoWindow({
        title    : "Record",
        resizable: false,
        modal    : true,
        viewable : false,
        content  : {
            template: $("#record-jsp").html()
        }
    }).data("kendoWindow");
    

    Bind data to the window and opening it:

    function openForm(record) {
        kendo.bind(kendoWindow.element, record);
        kendoWindow.open().center();
    }
    

    And finally invoking the function with the data.

    openForm(data[0]);
    

    You can see it running on this JSFiddle

    NOTE: If you still prefer using the external page, just need to change template: $("#record-jsp").html() by: url: "record.jsp"

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using RPNiemeyer`s kendo-knockout library. I have a kendo window: HTML: <div data-bind=kendoWindow:
I have a Kendo grid that has been sort-enabled. I want to do an
I have a Kendo UI DataSource that has 10 fields in it. I want
I have a Kendo grid that has links, which I also set to selectable,
I have a kendo window in my project. Now the content is coming form
I have a problem in binding JSON data to KENDO Pie Chart. I have
I am using Kendo open source Web UI. I have pop up window in
I am using RPNiemeyer kendo-knockout library. I have a grid. When the user clicks
I have a kendo-grid which refreshes very frequently but the update wheel that keeps
I have a kendo grid with data in it and multiple columns (say col

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.