Null error on auto expand row while using grid.refresh()

1 reply. Last post: March 14, 2010 11:53 PM by Yudi
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Shawn CraigMember

I want to be able to auto expand child rows BUT i also need to call grid.refresh from time to time. This code works until grid.refresh is called. The OnRowSelect fires while refreshing and blows up at the ExpandChildRow(). (See error at the bottom).  Is there a property I can query first?

  

        function wginstapps_OnRowSelect(controlId, tblName, rowIndex, rowEl) {
            var grid = ISGetObject(controlId);
            var selObj = grid.GetSelectedObject();
            var row = selObj.GetRowObject();

            if (row.Table.ChildTables.length > 0) {
                if (row.ChildExpanded) {
                    row.CollapseChildRow(); // collapse child row
                }
                else {
                    row.ExpandChildRow(); // expand child row
                }
            }
            return true;
}

This is where the null error:

m63329:function(v3dc13) { var vc1093 =v3dc13.parentElement

v3dc13 is null.

All times are GMT -5. The time now is 2:14 AM.
Previous Next