View Full Version : Action column and paging grid

18 Jan 2015, 8:24 PM
Hello experts,
I have two paging grids with action columns, lets say A and B. When I click on action button of a row of grid A, the record gets added(the roe is present here not deleted from grid) to Grid B and the action button gets disabled. And when I click action button of grid B, that row is deleted from grid B. Now I want that the action button of the same row of the deleted record from gird B should be enabled in Grid A.
Please show me some path to get that.

18 Jan 2015, 11:52 PM
Hy you can use function getClass of actionColumn's

getClass: function (v, metadata, record, rowIndex, colIndex, store) {
return gridA.getStore().findBy(function (gridA_rec) { return gridA_rec.get('field') == record.get('field'); }) > -1 ? 'cls_disabled' : 'cls_enabled';

20 Jan 2015, 8:39 AM
Please reference the documentation on the getClass method of the actioncolumn.