jQWidgets Forums

jQuery UI Widgets Forums Navigation Tabs Error when selecting tab programatically

Tagged: ,

This topic contains 1 reply, has 2 voices, and was last updated by  Vladimir 9 years, 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Error when selecting tab programatically #76024

    kjm
    Participant

    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 data presented.
    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.

    Without this code, the tabs work fine. I just want to start the user in the right place

    Error when selecting tab programatically #76097

    Vladimir
    Participant

    Hello kjm,

    Please take a look at this fiddle.

    If it still doesn’t work for you, please provide a fiddle demonstrating your issue.

    Best Regards,
    Vladimir

    jQWidgets team
    http://www.jqwidgets.com/

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

You must be logged in to reply to this topic.