This is a migrated thread and some comments may be shown as answers.

dynamic window

1 Answer 354 Views
Window
This is a migrated thread and some comments may be shown as answers.
Bharathi
Top achievements
Rank 2
Bharathi asked on 18 Mar 2016, 03:46 AM
Hi,

     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

Questions.txt
"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

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 21 Mar 2016, 01:02 PM
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>
<script>
  $("#dialog").kendoWindow(); 
  var dialog = $("#dialog").data("kendoWindow");
   
  dialog.content("<span>This</span> is a <strong>'test'</strong>");
</script>


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


Regards,
Konstantin Dikov
Telerik
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
Tags
Window
Asked by
Bharathi
Top achievements
Rank 2
Answers by
Konstantin Dikov
Telerik team
Share this question
or