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

$(Document).ready() on ClientDetailTemplate

1 Answer 427 Views
Templates
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 29 Jun 2016, 04:21 PM
I'd rather do some DOM manipulation in an external Javascript(actually Typescript) than the inline templating javascript syntax that Kendo uses, but I'm having trouble with when the DOM is ready so I can apply my changes to these elements.   I don't think $(Document).ready() works in my Typescript constructor that gets called everytime the row is expanded for the details.  Is there an event I can subscribe to in order to know when I can start manipulating the DOM?

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 01 Jul 2016, 02:47 PM
Hi James,

I recommend using the detailInit event of the Grid.

http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#events-detailInit

Regards,
Dimo
Telerik
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
Tags
Templates
Asked by
James
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or