dynamic window

2 posts, 0 answers
  1. Bharathi
    Bharathi avatar
    16 posts
    Member since:
    Feb 2014

    Posted 17 Mar 2016 Link to this post


         I'm working on something like Interactive video quiz I'm using html 5 for video and i will have my question and answers in a  .txt file like this format

    "00:00:20","What is 10+4","16","*14"
    "00:00:40","What is 10+6","*16","14","18"
    "00:00:10","What is 10+8","16","14","*18"
    "00:00:20","What is 10+14","16","*24","18"
    "00:00:20","What is 10+41","*51","14"

    I want to dynamically populate this questions(radio button/check box) in a kendo window . the html 5 video will play the video and it paused at the given time and kendo window populates the question. once the user click the submit button it records the answers and resume playing the video and again pause the video and open the kendo window to populate the questions.

    How do i populate kendo window dynamically ?

    Thank you for the help
  2. Konstantin Dikov
    Konstantin Dikov avatar
    2115 posts

    Posted 21 Mar 2016 Link to this post

    Hello Bharathi,

    You can change the content of the Window widget through its content method:
    Here is a simple example for changing the content of the window dynamically:
    <div id="dialog"></div>
      var dialog = $("#dialog").data("kendoWindow");
      dialog.content("<span>This</span> is a <strong>'test'</strong>");

    You can also take a look at the content template:
    Hope this helps.

    Konstantin Dikov
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top