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

Grid Randomly Not Getting Correct Data-Roles Set

1 Answer 47 Views
Grid
This is a migrated thread and some comments may be shown as answers.
PrimePay
Top achievements
Rank 1
PrimePay asked on 06 Apr 2015, 09:03 PM

Has anyone ever experienced a grid not getting any of the data-roles applied to the markup when the page loads? This seems to happen randomly, but usually when we open up the Kendo Window that contains the grid very quickly after the page loads.

 

It almost looks like we are going too quick for Kendo to catch up and create the proper markup.

 

Has anyone else seen a problem like this?

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 09 Apr 2015, 05:05 AM
Hello,

The data-roles are applied unconditionally by the Grid Javascript. If this doesn't happen, this indicates a Javascript error - please check. Probably some script on the page is trying to get reference to a Kendo UI widget too early, before it has been initialized. This can be avoided if the corresponding event handlers (e.g. click) and other code are wrapped in a document.ready handler, which is placed or called below the widget declarations. This will ensure that the respective widgets already exist.

Please send an example for inspection if you need further assistance.

Regards,
Dimo
Telerik

See What's Next in App Development. Register for TelerikNEXT.

Tags
Grid
Asked by
PrimePay
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or