Please help with following problem:
On the client I add new row, after that I want to remove this row.
Scenario is following:
1. User clicks some button, new row is added.
2. Later user clicks Cancel button, I want to remove previosly added row.
I don't need any postbacks or other actions.
I do following:
myAddedRow.get_grid().get_rows().remove(myAddedRow);
But this doesn't remove row, just marks it as deleted, the button "Undo" is shown in the grid.
How can I completely remove this row?
Please help, using UltraWebGrid it was a default behavior.
Alexander
Hi Alexander,
It sounds like you have batch updating on. If you have added a row on the client and not yet had it commited and then want it completely removed, you should call editingCore.undoBatchUpdate(row); This will completely remove it. If the row was already there, it will just mark it for deletion. You could set the DeletedRow role to have display none or something. That may work.
regards,David Young
Hi, David!
Thank you for your answer.
Yes, batch updating is on. Yes, row has been added on client, and I want to remove it on the client side
I've tried following:
addedRow.get_grid().get_behaviors().get_editingCore().undoBatchUpdate(addedRow);
This method removes it from the list, but after that I cannot select the last row in the grid.
If I click on any rows, I get java script errors.
And If I try again to add row and call this method it doesn't remove it.
Should I call remove method for the added row before this method or after
addedRow.get_grid().get_rows().remove(addedRow);
Actually I've tried but no success.
By the way, David, could you also have a look at this problem, maybe you can have some ideas
http://community.infragistics.com/forums/p/65438/331336.aspx#331336
Thank you,
Senthil,
Could you provide me with more details about what you are seeing and how you are reproducing the behavior? How do you have the control implemented? Are you able to reproduce this in the previous sample that was provided on this thread or do you have a different sample that you could send to me?
To be able to look in to this further I need to know how you currently have the grid implemented and how you are attempting to remove the records.
Hi Jason,
I'm using infragistics 14.2.20142.2317. the issue is still presist. Unable to solve the problem.
Please give me any quick solution
Thanks,
Senthil
Hello Senthil,
This issue was fixed in build 11.2.20112.2086 as well as the release build of 2012 Vol. 1 and later. What build are you using of Infragistics for ASP.NET? Could you provide more details of what you are currently seeing and how you have your application implemented?
I'm also facing the same issue. Workaround solution is not working for me.
Please update the fix if you its already taken care.
Alexander and David,
I have created case CAS-84177-Y4RP7B for this issue. I'll be linking the development issue to that case so Alexander can be notified when the fix is available in a public service release.