Main Menu
Knowledge Base
Product Registration
Log an Incident
Request a Feature
Search Incidents/Bug Reports


Search KB

Please note: In an effort to better serve you, we are in the process of restructuring DevCenter. In the process, we have moved many items that you may be used to finding in DevCenter over to the Main Site. If you are having trouble locating something, please try looking at the following places:

Knowledge Base Article: KB03028

HOWTO:Iterating through the rows in UltraWebGrid with client-side script


The information in this article applies to:
UltraWebGrid (v1.0.6007)
  Article Created: 
11/18/2002

Last Updated:
2/3/2003

Article Type
How To
  
Page Options
Average Rating:
1 out of 10

Rate this page
Print this page
E-mail this page
Add to Favorites

Summary

The following article details the fucntions that can be used to navigate through the rows collection on the client-side.

Additional Information

In order to iterate through the rows of the grid use the following functions. The gn parameter is the name of the grid and the row parameter is the Dom object of the row you currently have a reference to.

function igtbl_getNextSibRow(gn,row) - returns the next sibling of a row. The returned value is the DOM object of the next sibling row. It will return null if the row is the last in its row island.

function igtbl_getPrevSibRow(gn,row) - returns the previous sibling of a row. The returned value is the DOM object of the previous sibling row. It will return null if the row is the first in its row island.

function igtbl_getFirstSibRow(gn,row)
- returns the first row in the row island. The returned value is the DOM object of the first row in the row island.

function igtbl_getLastSibRow(gn,row) - returns the last row in the row island. The returned value is the DOM object of the last row in the row island.

function igtbl_getFirstChildRow(gn,row) - returns the first child row of a row. The returned value is the DOM object of the first child row. It will return null if the row has no child rows.

function igtbl_getLastChildRow(gn,row) - returns the last child row of a row. The returned value is the DOM object of the last child row. It will return null if the row has no child rows.

Note that the functions are defined only if the activation is allowed.

Related Articles

HOWTO: In UltraWebGrid using a client side script how do you get the count of the rows in the grid and how do you loop through the rows collection (KB01118)


How would you rate the quality of this content?
Poor -----------------------------------------> Outstanding

Tell us why you rated the content this way. (optional)