D'Arcy from Winnipeg
Musings of a Canadian web developer

Infragistics UltraWebGrid Clearing All Rows Client Side

Thursday, May 29, 2008 11:47 AM

I have an UltraWebGrid that I needed to clear all the rows out of. I found an article on the Infragistics Dev Center that suggested a looping construct that used the row.NextSibling!=null comparison. The problem was that it didn't work...the row.NextSibling would always return 'undefined'.

So I decided to take a different approach which actually works really well:

[Edit: Sorry, SubText doesn't like it when you try and copy/paste code directly into the web text editor apparanetly. Image version is below]

Voila...I've noticed that there's a bit of a delay that occurs while the rows in my grid delete (there's alot of them), but I'll worry about prettying that up later....at least for now I have them clearing out.

Hope this helps someone else.

D


Feedback

# re: Infragistics UltraWebGrid Clearing All Rows Client Side

D'Arcy:

Can you point me to the KB in question? I can have our Developer Support team review the article to see if there is a problem with the code.

Devin 5/30/2008 4:14 PM | Devin Rader

# re: Infragistics UltraWebGrid Clearing All Rows Client Side

That would be great Devin, thanks! I'll hunt it down tonight and email it to you.

D 5/30/2008 4:32 PM | D'Arcy from Winnipeg

Post a comment





 

Please add 2 and 8 and type the answer here: