jQuery UI Widgets › Forums › Grid › Sorting grid inside of a tab not working
This topic contains 2 replies, has 2 voices, and was last updated by gprestwood 1 year, 4 months ago.
I am trying to sort a grid with a default sortcolumn and sortdirection = ‘desc’. The grid is inside of a jqxTab. This leads to “Uncaught TypeError: Cannot read property ‘length’ of undefined”.
If I disable the default sort OR comment out the jqxTabs line, it works without error. But for my purposes, I need the grid inside the tab.
See the fiddle at http://jsfiddle.net/vL74xwkc/.
Any idea what I’m doing wrong?
I would like to mention one important thing when you create widgets inside the jqxTabs.
In this case, you should use the initTabContent callback for the initialization of the concrete widget.
Please, take a look at this demo.
Thank you Hristo! That solved it.
You must be logged in to reply to this topic.