Dynamically created dynamic grids not refreshing

2 posts, 0 answers
  1. Ben
    Ben avatar
    3 posts
    Member since:
    Sep 2013

    Posted 14 May 2015 Link to this post


    I have a requirement for users to be able to select and add grids to a page without knowing the table schema beforehand.

    I have a partial view to display a grid from any given data table using initial Server Binding with Ajax updates. When adding several of these grids to a view using Html.Action they work as expected.

    However, when I add the above grids dynamically using an Ajax.BeginForm request the grids initially display correctly but any refreshes or page changes causes an error. The dynamically added grids are rendered differently (eg. missing data-role="grid") and they send HTTP GET requests instead of HTTP POST.

    I've attached the Controller and Views I'm using for testing.

  2. Dimo
    Dimo avatar
    8478 posts

    Posted 18 May 2015 Link to this post

    Hello Ben,

    There are no files attached to your message, but generally, you need to keep in mind the following:

    - The Kendo UI widgets are client-side widgets. They do not have server-side instances and do not persist their state across page reloads. If this is a required behavior, you need to take care of it via custom logic.

    - Make sure that each Grid instance has a unique ID. Widgets with duplicate IDs will not initialize or work correctly.

    - Make sure that each Grid instance is initialized only once per page load

    In case you need further assistance, please provide a standalone runnable example for testing.

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top