sul4bh
sul4bh

Reputation: 636

How to save slickgrid data to "data" array on click of some external button?

When we change the value in any cell in sickgrid, that value is not stored to the "data" array until focus is removed from the cell. How can we make this data in the edit field of any cell to be stored in "data" array on click of some button outside of the grid?

Upvotes: 0

Views: 633

Answers (1)

Ivan Castellanos
Ivan Castellanos

Reputation: 8251

$("#save").click(function(){
     grid.getEditController().commitCurrentEdit();
})

Not tested, but i think it should do the trick.

Upvotes: 1

Related Questions