﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebGrid Enterprise - Null error on auto expand row while using grid.refresh()</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Null-error-on-auto-expand-row-while-using-gridrefresh/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Null error on auto expand row while using grid.refresh()</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Null-error-on-auto-expand-row-while-using-gridrefresh/</link><pubDate>Sun, 14 Mar 2010 23:53:18 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;You’re only need to add “true” parameter to CollapseChildRow() method or ExpandChildRow() method. Example :&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;selectedRowObj.CollapseChildRow(true);
selectedRowObj.ExpandChildRow(true);&lt;/pre&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;This should helps.&lt;/span&gt; </description></item><item><title>Null error on auto expand row while using grid.refresh()</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Null-error-on-auto-expand-row-while-using-gridrefresh/</link><pubDate>Thu, 11 Mar 2010 23:39:18 GMT</pubDate><dc:creator>shawncraig@yahoo.com</dc:creator><description>&lt;p&gt;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?&lt;/p&gt;
&lt;p&gt;  &lt;/p&gt;&lt;pre&gt;        function wginstapps_OnRowSelect(controlId, tblName, rowIndex, rowEl) {
            var grid = ISGetObject(controlId);
            var selObj = grid.GetSelectedObject();
            var row = selObj.GetRowObject();

            if (row.Table.ChildTables.length &amp;gt; 0) {
                if (row.ChildExpanded) {
                    row.CollapseChildRow(); // collapse child row
                }
                else {
                    row.ExpandChildRow(); // expand child row
                }
            }
            return true;
}&lt;/pre&gt;
&lt;p&gt;This is where the null error:&lt;/p&gt;&lt;pre&gt;m63329:function(v3dc13) { var vc1093 =v3dc13.parentElement&lt;/pre&gt;
&lt;p&gt;v3dc13 is null.&lt;/p&gt;</description></item></channel></rss>