jQWidgets Forums

jQuery UI Widgets Forums Grid Problem switching between virtual/non-virtual mode

This topic contains 1 reply, has 1 voice, and was last updated by  cosmic 11 years, 1 month ago.

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

  • cosmic
    Participant

    Depending on the number of records, I am loading a grid in either virtual or non-virtual mode. It works well (to an extent) but when switching from a virtual mode to a non-virtual one, it appears the rendergridrows function is fired for the non-virtual grid one more time.

    I switch back and forth by issuing the following commands.

    To switch to virtual:
    $(“#jqxGrid”).jqxGrid({ source: dataAdapter, virtualmode: true });

    To switch to non-virtual:
    $(“#jqxGrid”).jqxGrid({ source: dataAdapter, virtualmode: false});

    Is there a way to prevent the rendergridrows function from not firing?


    cosmic
    Participant

    Well…looks like I figured it out. Hopefully this will save you guys learning this some time. Issuing the following command appears to work when switching from virtual to non-virtual mode.

    $(“#jqxGrid”).jqxGrid({ virtualmode: false, source: dataAdapter });

    Just make sure the “source” parameter appears last.

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

You must be logged in to reply to this topic.