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

requestEnd fires only once?

3 Answers 181 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Kenny
Top achievements
Rank 1
Kenny asked on 25 Apr 2013, 07:37 AM
My Data Source is set up to read JSON from my server for a Grid with scrollable.virtual = true. 

I would like to access the data being returned from the server each time the Data Source makes a request and gets more data as the Grid is being scrolled. I think requestEnd is the event I should be using for this. 

However, the requestEnd event seems to fires only once the first time the Grid loads. When the Grid is scrolled down, subsequent requests are made to the server, data is returned and displayed however requestEnd is not fired again. Is this expected? 

Kenny

3 Answers, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 25 Apr 2013, 08:59 AM
Hello Kenny,

Indeed, the requestEnd and requestStart events are not raised during remote virtualization, with current version of KendoUI. However, we managed to address this and the fix will be included in the next internal build. Meanwhile, as a temporary workaround you may consider overriding the schema's parse function and handle the raw response there. 

Greetings,
Rosen
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Kenny
Top achievements
Rank 1
answered on 25 Apr 2013, 06:03 PM
Hi Rosen, 

Thanks for the response. This was so close to what I needed but then I realized I actually need the response from requestEnd and not just the raw server response. More specifically I need the UIDs for the objects which aren't available at this point. 

I will think about it a bit more, I may need to use a RowTemplate for my grid at which point I think I can inject my own IDs for referencing the rows and then I wouldn't need the UIDs any more. For now I do have a work around using the Data Source change method, it's not ideal but it will work for now. 

Kenny

0
Rosen
Telerik team
answered on 26 Apr 2013, 07:42 AM
Hi Kenny,

The requestEnd does not provide the processed data, as it is raised before data is processed by the DataSource. If you need access to the processed data you should the change event instead.

Regards,
Rosen
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Data Source
Asked by
Kenny
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Kenny
Top achievements
Rank 1
Share this question
or