The following code is available...
So if I filter TreeGrid and select a record, the record properties "state" and "changed" do not change in the DataSource.
How do I make changes to DataSource records?
SmartClient Version SNAPSHOT_v12.1d_2019-12-11
Code:
SelectionChangedHandler statesChangeHandler = new SelectionChangedHandler() { public void onSelectionChanged(SelectionEvent event) { if(!noChange) { ListGridRecord record = event.getRecord(); Boolean value = event.getState(); record.setAttribute("state", value); record.setAttribute("changed", true); mlTreeGrid.updateData(record); } } } }; ...... mlTreeGrid = new TreeGrid(); ...... mlTreeGrid.addSelectionChangedHandler(statesChangeHandler);
How do I make changes to DataSource records?
SmartClient Version SNAPSHOT_v12.1d_2019-12-11
Comment