Whenever any change is made in view(UI) of igHierarchicalGrid it is getting updated in view..However when i print the output in console the datasource is still showing old data
Hello Akhi,
What change did you make in the view, so that the datasource was supposed to be updated? And how did you print the output in the console? Please share some code or the whole sample, so that I can run and test it on my side.
Regards,
Tsanna
Hi Tsana,
http://jsfiddle.net/jc8kce18/3/
When i add and remove rows it is reflecting on view.I want to send the updated data of the table to be send as JSON on click of submit button.
However on click of submit button it is still showing the old data source values.
Thanks in advance,
Akhi
I would recommend you to read the following documentation about how to save changes to the server using button click and saveChanges method API which will invoke an AJAX request to the updateUrl option (if specified) and passes the serialized transaction log as part of the POST request: https://www.igniteui.com/help/iggrid-updating#persist-changes
If you have further questions, please let me know.
Tsanna,
I am still not clear.In the example i shared,Can you print in console of browser or pop an alert message showing the updated JSON after a new row is added by clicking "Add new row".
That is awesome!!.
Thanks Tsanna for the support.I really appreciate it.
If you turn on autoCommit option and alert the newly added record like for example: http://jsfiddle.net/jc8kce18/42/ you should be able to see the newly added record.