Tuesday, June 17, 2008 12:50 PM
I'm banging my head on a wall here, and am looking for some insight. I have an Infragistics UltraWebGrid. It allows users to add Widget's to it (well, it doesn't, but we're going with a Widget metaphor here). Each row contains a Widget ID value and a Widget Type ID value. However, no two rows can have the same combination of Widget ID and Widget Type ID...they all must be unique.
So I'm using Javascript and the Infragistics client library to try and get this working. Below is the function...

You'll notice that I'm using the igtbl_GetFirstSibRow, as that is one of the methods Infragistics uses for navigating rows on the client (according to this kb article). So there is no "rows" collection of the grid, you have to manually go through the rows using "GetFirstSibRow" and "GetNextSibRow", etc.
Everything is fine until the line where I declare rowElem and assign it the value returned from the getFirstSibRow method. Now I've done some testing, and it does return an object...we're not getting null returned here. But later on in my while loop, when I attempt to get the value using rowElem.getCellFromKey( ), I'm getting the error message:
"Object doesn't support this property of method."
This is where I go WTF!? If getFirstSibRow is returning a grid row, shouldn't it have all the methods and properties of a row, including getValue and getCellFromKey?
You'll notice that I have a commented line in my code as well. That's there to show that I've tried using the method that way to fill the rowElem, and it doesn't work. I have to use the uncommented row.
Has ANYONE had success navigating through a grid's row collection on the client and been able to pull values out of each of the rows to assess them? Is there another way to access the rows collection of the UltraWebGrid that I'm unaware of which would remove the need to go through row by row using Next/Prev type of methods?
D