jQWidgets Forums

jQuery UI Widgets Forums Angular How to refresh local data from edited grid?

This topic contains 1 reply, has 2 voices, and was last updated by  Martin 6 years, 11 months ago.

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

  • Grigoriy Grachev
    Participant

    I make an editable jqxGrid. It gets data from local variable. User edits data in some fields. Then one property of the grid gets changes. The whole grid rerenders, because it is reactive template. So, grid gets old data from the local variable. I mean, user looses his changes.

    I tried function ‘savestate’. It saves only properties, not data?
    How to save all data from the edited grid to variable?


    Martin
    Participant

    Hello Grigoriy Grachev,

    Yes, the jqxGrid does not update the data source when you edit its fields.
    You will need to manually change your local variable or the data on the server if you load the grid’s data from there.

    You can bind to the cellendedit event of the grid. The ‘args’ property of the ‘event’ parameter passed to the handler contains information about the edited cell: rowindex, datafield, etc..

    Best Regards,
    Martin

    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.