Kendo UI Tabstrip + Grid (with freeze) rendering problem

4 posts, 0 answers
  1. junever
    junever avatar
    3 posts
    Member since:
    Sep 2015

    Posted 21 Sep 2015 Link to this post

     Hi All,

        I'm having problems on kendo grid missing columns.

    Scenario: I'm using a tabstrip, with 2 tabs. 1st has a kendo grid with frozen columns. 2nd tab has not. At 2nd tab I'm triggering this function $("#Gridname").data("kendoGrid").dataSource.read() for at least twice (as my code needs to refresh the grid). When I return to 1st tab the frozen columns are missing.. I have checked the data using firebug and the data is complete but the grid columns is incomplete.. How to solve this issue? Thanks in advance.

  2. Rosen
    Admin
    Rosen avatar
    3234 posts

    Posted 25 Sep 2015 Link to this post

    Hello junever,

    The issue, most probably, is due to the fact that the Grid widget is not visible, thus it cannot adjust its layout correctly. You will need to manually refresh it when it is displayed. This can be achieved using the tabstrip activate event in which to call resize method of the Grid. Similar to the following

    function onActivate (e) {       
        $(e.contentElement).find("[data-role=grid]").kendoGrid("resize");       
    };

    Regards,
    Rosen
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. junever
    junever avatar
    3 posts
    Member since:
    Sep 2015

    Posted 27 Sep 2015 in reply to Rosen Link to this post

    Thanks for your reply Rosen, but the issue is still not fixed. I tried to use your fixed on activate event but the columns are still missing.

    example.

    I have 3 columns.

    col1 | col2 | col3 (col 1 is set to frozen)

     then I went to tabstrip 2, I refreshed the grid from tabstrip 1 (using $("#Gridname").data("kendoGrid").dataSource.read() ) to update the grid. then returned to tabstrip 1 and the col1 is missing. It is the same on my other grid at frozen columns.

     

    Thanks.

  4. Rosen
    Admin
    Rosen avatar
    3234 posts

    Posted 29 Sep 2015 Link to this post

    Hello junever,

     

    I will leave this forum thread open for someone from the community to be able to get involved. In case you need technical support assistance from Telerik staff, please purchase a commercial license.

     

    Regards,
    Rosen
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top