Callback when grid is fully loaded

1 Answer 6184 Views
Grid
Mahmut
Top achievements
Rank 1
Mahmut asked on 14 Jun 2017, 10:46 AM
I'm trying to change some data after grid is ready to use but "onDatabound", "change" or "requestEnd" events not working for me. Becouse they are working before html changes. How can I do?

1 Answer, 1 is accepted

Sort by
0
Preslav
Telerik team
answered on 14 Jun 2017, 01:47 PM
Hi Mahmut,

The dataBound event fires when the widget is bound to data from its data source and it is ready to use.
That said, if this event is not suitable for you, could you please elaborate on the exact scenario of your project? This information would help us understand the problem and provide assistance(another event) to the best of our knowledge.

Regards,
Preslav
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Mahmut
Top achievements
Rank 1
commented on 14 Jun 2017, 03:16 PM

I'm changing some html codes on incoming data but dataBound event is working before the html changes (I guess).

I have to do it after all data is loaded and html changes finished.

I defined a timer with 100ms on dataBound event and its working for me but I can't trust the timer.

Preslav
Telerik team
commented on 15 Jun 2017, 01:02 PM

Hello Mahmut,

The HTML responsible for the Grid is changed before the dataBound event fires. For example, check this Dojo: http://dojo.telerik.com/AYaMA

If you need to modify HTML outside the Grid, I would suggest using the jQuery document ready event:

Regards,
Preslav
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Mahmut
Top achievements
Rank 1
Answers by
Preslav
Telerik team
Share this question
or