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

To know that data have been loaded in a grid

2 Answers 54 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ivan
Top achievements
Rank 1
Ivan asked on 13 Jan 2017, 09:44 AM

It there a way to know that data has been loaded into a grid usin coded step?

I need to know that data has been loaded in the grid successfully.
I can use a DataItems count (of a Telerik.TestingFramework.Controls.KendoUI.KendoGrid) and wait when the count will be more 0.
But sometimes I can have a case where the DataItems count is 0
I need to know (from Test Studio) that dataBound event has been fired for kendo grid object in a browser.
Thanks.

2 Answers, 1 is accepted

Sort by
0
Elena
Telerik team
answered on 18 Jan 2017, 09:15 AM
Hello Ivan,

Kendo grids are using  JQuery AJAX requests to communicate with server to load its data. Therefore you could try placing an AJAX timeout between the action that triggers loading of the data in the grid and the next actions against the loaded grid. 

Manager.ActiveBrowser.WaitForAjax(30000);

I hope this will be useful for you as well. 

Regards,
Elena Tsvetkova
Telerik by Progress
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Ivan
Top achievements
Rank 1
answered on 19 Jan 2017, 05:49 AM
Thanks alot.
Tags
General Discussions
Asked by
Ivan
Top achievements
Rank 1
Answers by
Elena
Telerik team
Ivan
Top achievements
Rank 1
Share this question
or