Getting this error when selecting a tab programatically: Error: Unable to get property ‘outerWidth’ of undefined or null reference
Selecting like this:
if (Position == ‘WR’)
$(‘#genericTabs’).jqxTabs(‘select’, 0);
else if (Position == ‘RB’)
$(‘#genericTabs’).jqxTabs(‘select’, 1);
else if (Position == ‘QB’)
$(‘#genericTabs’).jqxTabs(‘select’, 2);
else if (Position == ‘K’)
$(‘#genericTabs’).jqxTabs(‘select’, 3);
else
$(‘#genericTabs’).jqxTabs(‘select’, 0);
In the created event there is no error.
I have 4 tabs inside a splitter, each tab has a grid.
I want to select a specific tab based on the users selection.
I have moved the code around a bit, but I think this code belongs after the 4 $(“#gridname”).jqxGrid…. lines.
Is there an event I need to subscribe to? I tried the created event but that fired on DOM initialization and not after the grids load.
Without this code, the tabs work fine. I just want to start the user in the right place