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.
$(“#jqxGrid”).jqxGrid(‘setcellvalue’, 0, “col1”, value);
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?
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.