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

Handling completion of LoadContentFrom()

2 Answers 57 Views
Window
This is a migrated thread and some comments may be shown as answers.
Ravi
Top achievements
Rank 1
Ravi asked on 10 Aug 2012, 06:00 PM
After loading the HTML content of a Kendo().Window() from the server, I'd like to call a JavaScript function to set up event handlers for DOM elements in the content.  I don't see an event definition for the completion of LoadContentFrom().  What's the best way to go about doing this?

Thanks,

--Ravi

2 Answers, 1 is accepted

Sort by
0
Accepted
Alex Gyoshev
Telerik team
answered on 13 Aug 2012, 07:23 AM
Hello Ravi,

Use the refresh client-side event:

.Events(ev => ev.Refresh("onRefresh"))

function onRefresh() {
    // event handling code
}

Regards,
Alex Gyoshev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Ravi
Top achievements
Rank 1
answered on 13 Aug 2012, 01:53 PM
Thanks, that worked.  Eagerly awaiting the fully doc'd API.  :)

--Ravi
Tags
Window
Asked by
Ravi
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Ravi
Top achievements
Rank 1
Share this question
or