jQuery UI Widgets Forums Grid Not sure if this is a tab or grid issue

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 8 years, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Not sure if this is a tab or grid issue #76028

    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 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

    Not sure if this is a tab or grid issue #76029

    Peter Stoev
    Keymaster

    Hi kjm,

    Please, refer to: http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/tabs-and-grid.htm?arctic to learn how to use Grids within Tabs. It is important to use the Grid inside Tabs as shown in the demo.

    Best Regards,
    Peter Stoev

    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.