jQWidgets Forums

jQuery UI Widgets Forums Grid Tabs and Grid display problem

Tagged: ,

This topic contains 4 replies, has 2 voices, and was last updated by  jasne 12 years, 6 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • Tabs and Grid display problem #14847

    jasne
    Participant

    Hi

    I have a problem with tabs and grid. In fourth tab (tab4) is seven columns Grid (data type json ajax).
    But when a I click tab4 , grid display only 2 columns. It looks like all other columns are cutted /hidden.
    When I click button reload json data, Grid appear properly…

    Should be (after click reload json)

    Tabs and Grid display problem #14848

    Peter Stoev
    Keymaster

    Hi jasne,

    Please, take a look at the Tab’s integration sample which demonstrates how is the expected way for adding widgets inside jqxTabs.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Tabs and Grid display problem #14855

    jasne
    Participant

    thanks for your reply . I have used

       $('#jqxTabs2').jqxTabs({ animationType: 'none', initTabContent: initWidgets  }); 

    and everything works ok but when I’m using button to reload json data

    $("#jqxgridCarData").jqxGrid("updatebounddata");

    get same problem

    Tabs and Grid display problem #14856

    Peter Stoev
    Keymaster

    Hi jasne,

    As a solution, make sure to refresh the Grid only if the tab where the Grid is added is selected. I suppose that in your scenario the Grid’s size is set in percentages to fit to the tab’s content. If the tab is not visible, the tab’s content size will be 0px for width, 0px for height so the Grid will try to stretch to a container without size.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Tabs and Grid display problem #14857

    jasne
    Participant

    thanks for you help. just set widht: 780 , slove this problem 🙂

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.