I have an Infragistic grid,textboxs and a Cancel button below the grid in my web page. I am populating the grid from the database.
When I click any row in IgGrid , the columns value for that row are shown in the text boxes (NB: We are not using row editing template of iggrid). Then If I make any changes in any of the text box values, the same is directly reflecting in the grid.But if I want to cancel the edited data By clicking Cancel Button ,It should load the Iggrid in previous state.
But In my case chages are reverting back in Datasource of iggrid , but it is not reflecting in the iggrid. IgGrid is displaying edited data, not same as previous state.
Please suggest how can I do this.
Hello Biswajit,
Thank you for contacting Infragistics community.
It would be more helpful if you could share your code in order to take a deeper look at it on my side.
At the meantime please take a look at the following sample that demonstrates grid with knockout.js binding and similar behavior to your scenario: http://igniteui.com/grid/bind-grid-with-ko I hope you may find it useful.
Looking forward to your response.
Regards,
Tsanna
Hello Tsanna,
Thank you for providing the link.
I will look into it and let you know whether it will work or not.
Biswajit
Thank you for your feedback.
If I can provide further assistance, please let me know.
I have already implemented the code in html and jquery.
If I implement the same using infragistic knockout.js, I have to update the entire logic.
Using the current code I can update row in iggrid from textbox on key press. But I am facing difficulty to reload it on click of CANCEL button
So it will be good if any other solution was provided.
Could you please help me.
Biswajit Dutta
Please provide me with your sample code in order to investigate it on my side and suggest you some resolution of the problem.