jQuery UI Widgets Forums Navigation Tabs jqxGrid not work on inactive tab

This topic contains 7 replies, has 2 voices, and was last updated by  Martin 11 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
  • jqxGrid not work on inactive tab #100662

    ci
    Participant

    Many functions of the grid stop working when the grid is on inactive tab, for example setcellvalue
    jsfiddle
    Yes

    • This topic was modified 11 months, 1 week ago by  ci.
    jqxGrid not work on inactive tab #100667

    Martin
    Participant

    Hello ci,

    The jqxTabs has “initTabContent” property which is a callback function that the tab calls when a content panel needs to be initialized.
    Here I updated your fiddle example using initTabContent.

    You can also see how it is used in the our “Integration with other widgets” demo of the jqxTabs: Demo

    Best Regards,
    Martin

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

    jqxGrid not work on inactive tab #100673

    ci
    Participant

    But if I need to do something with the grid not during the initialization table, for example

    The problem is related to jqxGrid, other widgets do not suit me

    jqxGrid not work on inactive tab #100697

    Martin
    Participant

    Hello ci,

    In your example you call setcellvalue and setcolumnproperty methods before initializing the grid, because the initGrid() is not called before you open tab1. After you have opened it you can call methods which update the grid, like This.

    If you need to do this before opening tab1 you should initialize the grid before the tabs, like This.

    The tabs content should be initialized either before the jqxTabs or in its initTabContent property.

    Best Regards,
    Martin

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

    jqxGrid not work on inactive tab #100703

    ci
    Participant

    The problem is that I can not set the property “columns”, like This

    jqxGrid not work on inactive tab #100726

    Martin
    Participant

    Hello ci,

    The best solution for this would be to use the tabs “initTabContent” property and update the grid either immediately after its tab is opened, like This, if it is needed or update it later.

    Best Regards,
    Martin

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

    jqxGrid not work on inactive tab #100733

    ci
    Participant

    But if I need edit grid columns not during the initialization tab?

    jqxGrid not work on inactive tab #100738

    Martin
    Participant

    Hello ci,

    If you need to edit the columns before opening the tab with the grid for the first time, you can just edit the source variable and then pass it to the initGrid method.
    Otherwise, you can update the columns whenever you want after that.

    Best Regards,
    Martin

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

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

You must be logged in to reply to this topic.