jQuery UI Widgets Forums Grid How to call methods on a hidden grid (urgent)

This topic contains 1 reply, has 2 voices, and was last updated by  Dimitar 10 years, 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • sohnem2

    Initially my datagrid is hidden from view in another jqxwidget tab.
    Even with data which has been set for that datagrid, initially certain methods fail to work on such datagrid.
    For e.g.:
    $(“#jqxGrid”).jqxGrid(‘setcellvalue’, 0, “col1”, value);
    $(“#jqxGrid”).jqxGrid(‘autoresizecolumns’, ‘all’);
    They work only after I have clicked on the tab to show the datagrid.
    Afterward, even if switch back to another tab to hide the datagrid tab, the above methods work.
    Only initially before the datagrid tab is clicked for the first time.

    How can one deal with this? Currently was delaying some of the method calls to until initially the datagrid tab is clicked.
    Is there a way to make them work even while the datagrid is initially hidden?


    Hello sohnem2,

    If you are using initTabContent to initialize the grid when its tab item is clicked, that means it has not yet been created when you are trying to call its methods the first time. When you click its tab, the grid initializes and its methods can be called.

    Best Regards,

    jQWidgets team

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

You must be logged in to reply to this topic.