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

grid onRender event

1 Answer 145 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Martin Sura
Top achievements
Rank 1
Martin Sura asked on 09 Sep 2011, 02:30 PM
Hello,

I have simple question, is exists in telerik mvc grid client event "onRende"?

I need call some javascript function, when grid is complete render on page. 

Thanks

Martin

1 Answer, 1 is accepted

Sort by
0
Nohinn
Top achievements
Rank 1
answered on 09 Sep 2011, 02:58 PM
There is no OnRender client event.
There is though OnLoad client event. It will fire after creating the grid element (so after rendering it).

You should take into account that this OnLoad event does not mean it will fire after the data binding is done if you use Ajax or Web-Service binding. For that case where you want to be sure there is already data being rendered you should use the OnDataBound client event.

You can take a look to all the client events as their params here:
http://www.telerik.com/help/aspnet-mvc/telerik-ui-components-grid-client-api-and-events.html
Tags
Grid
Asked by
Martin Sura
Top achievements
Rank 1
Answers by
Nohinn
Top achievements
Rank 1
Share this question
or