I have created a TreeGrid which uses a client dataSource in order to get support for updateData().
However I am unable to get it to update the records or even add new records via the datasource.
Does not work:
However I can use the following by accessing the data directly:
This method would be good but there is no TreeGrid.data.update() feature.
Is it possible to update records in a treeGrid via updataData where no requests are made to the server, if so how?
If it is not possible is there an alternative method of manipulating the TreeGrid.data directly in order to change values, again how?
I have looked at:
This changes the value in the array but not the value displayed, is there a refresh data function?
All I am after doing it updating the icons next to nodes is there an alternative I have overlooked?
Thanks
However I am unable to get it to update the records or even add new records via the datasource.
Does not work:
Code:
DataSource.addData({id:511,title:'horse'})
Code:
TreeGrid.data.add({title: 'dfds', id: 1, parentId: 'root'},TreeGrid.data.getRoot())
Is it possible to update records in a treeGrid via updataData where no requests are made to the server, if so how?
If it is not possible is there an alternative method of manipulating the TreeGrid.data directly in order to change values, again how?
I have looked at:
Code:
countryData[0]['countryName']='new name';
All I am after doing it updating the icons next to nodes is there an alternative I have overlooked?
Thanks
Comment