jQuery UI Widgets Forums Grid When is the earliest I can call savestate

This topic contains 2 replies, has 2 voices, and was last updated by  ajcs 4 years, 2 months ago.

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

  • ajcs
    Participant

    I need to call savestate as soon as I can:
    state = $(“#jqxgrid”).jqxGrid(‘savestate’);

    This is so I can capture the initial state to give the user an option to restore it later. If I do it too soon I don’t get any columns.

    So at the moment I do it in a timer 500 ms after the bindingcomplete event has fired.

    But I think I can do it earlier than this.

    How can I use savestate at the earliest point please? Is there a better event to use?

    I am asking this because after savestate there may be a new state being set that the user has previously saved and if I do it too late I get a flicker in the columns. So this is why timing is important.


    Hristo
    Participant

    Hello ajcs,

    Could you clarify it?
    Because I try this example and it seems to work fine.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    https://www.jqwidgets.com


    ajcs
    Participant

    Thanks I did not realize about the ready function and I got it to work better using that

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

You must be logged in to reply to this topic.