Grid Randomly Not Getting Correct Data-Roles Set

2 posts, 0 answers
  1. PrimePay
    PrimePay avatar
    25 posts
    Member since:
    Feb 2015

    Posted 06 Apr 2015 Link to this post

    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?

  2. Dimo
    Dimo avatar
    8478 posts

    Posted 09 Apr 2015 Link to this post


    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.


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

Back to Top