WebGridTable.Rows Client Side Bug?

3 replies. Last post: May 11, 2010 9:40 AM by Yudi
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback

Hi,

I have a hierarchical table structure in my WebGrid where there is one RootTable and one ChildTable.  I want to iterate through all rows of my child table to look for certain "StatusID" column values and if found set the WebGrid to automatically refresh after a set period of time, when I will perform the check again.

The code I have written is as follows:

        var grid = ISGetObject("grdEDMPortfolios");

var childRows = grid.RootTable.ChildTables[0].Rows;
for(var i = 0; i < childRows.length; i++)
{
alert(childRows[i].GetCells().GetNamedItem("StatusID").Value);
}

This does not work however since the "ChildTables[0].Rows" property never returns the child rows as described in your WebGrid documentation, it always returns null.

Is this a bug?  And how do I do this without have to iterate though each RootTable row then having to get each child row which seems like overkill.


Regards,

Adrian.

All times are GMT -5. The time now is 5:56 PM.
Previous Next