开发者

How to make cell save when slickgrid looses focus

开发者 https://www.devze.com 2023-04-07 09:37 出处:网络
I have a SlickGrid with some Editors on a form with some buttons above it. (Save and Cancel). When i edit a cell in the grid and click the buttons above the grid - the cell does not commit it\'s edit.

I have a SlickGrid with some Editors on a form with some buttons above it. (Save and Cancel). When i edit a cell in the grid and click the buttons above the grid - the cell does not commit it's edit. I've debugged and开发者_高级运维 it is not calling : commitCurrentEdit. I've also tested on clicking an empty area anywhere out of the grid area...

Has anyone noticed this scenario and have a solution to get the cell to commit when one clicks out of the grid. Due to the various positions the grid good be in it would be hard to do an overlay.

Thanks


You can try this:

$("#buttonName").bind("click", function(){
  gridName.getEditController().commitCurrentEdit()
});
0

精彩评论

暂无评论...
验证码 换一张
取 消