Sep 18, 2012, 7:50 PM
[CLOSED] Javascript - Updating a TreeGrid
I have a TreeGrid panel that is editable via the cell-editing plugin. However, I need to do "bulk" updates on the client via some button clicks. For one, I need to give the users the ability to set a date for all the rows for a given column. I have been able to find a row's column in the store by this:
Can you please tell me the correct way to go about changing the data on the client-side?
There are two caveats - 1) I need to see the new date reflected to the screen via javascript with the indicator that the value has changed, and 2) I need to put the grid into a state that will allow it to pass the updated data back to my controller once my (DirectEvent) "Save" button is clicked.
Thanks in advance.
App.reinsurerTree.store.tree.root.childNodes[1].childNodes[0].data.DateSentToRI
And I have been able to set the value by this:App.reinsurerTree.store.tree.root.childNodes[1].childNodes[0].data.DateSentToRI = new Date('1/1/1980')
However, the grid is not visually changing. I am assuming that there is another function to call, but I tried using "setDate" to no avail. e.g.App.reinsurerTree.store.tree.root.childNodes[1].childNodes[0].data.DateSentToRI.setDate(new Date('1/1/1980'))
I also tried to "sync" the grid to the store after changing the value, but that didn't seem to work either.Can you please tell me the correct way to go about changing the data on the client-side?
There are two caveats - 1) I need to see the new date reflected to the screen via javascript with the indicator that the value has changed, and 2) I need to put the grid into a state that will allow it to pass the updated data back to my controller once my (DirectEvent) "Save" button is clicked.
Thanks in advance.
Last edited by Daniil; Sep 25, 2012 at 7:02 AM.
Reason: [CLOSED]