D'Arcy from Winnipeg
Solution Architecture, Business & Entrepreneurship, Microsoft, and Adoption

Infragistics: Deleting New Row in UltraWebGrid Won't Fire Server Event

Friday, July 13, 2007 5:44 AM

I was banging my head against the wall...it just didn't make sense:

I have an UltraWebGrid that you can add new rows to on the client side. This works great. When a row is deleted, we have a server side event that is set to fire, and for testing purposes I just writeout the index of the row being kyboshed.

But whenever I'd add a new row and then delete it, it would never fire! I tried everything, setting the event handler in code behind, resetting it in the designer...nothing worked.

Hitting the net, nobody else seemed to have a problem with deleting rows except a guy named Murat. Turns out that if you add a row to the UltraWebGrid via javascript, the delete event on the server WON'T FIRE. Ever.

I have no idea why this is, but that's how its implemented. This isn't a huge deal for us actually, as new rows that are deleted don't really mean anything to us. But I was freaking out more that there was something I was missing with the grid, but knowing that only pre-existing rows will fire the code actually reduces the checks we have to do in processing.

D




Feedback

No comments posted yet.


Post a comment