﻿<?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 - Customize RowChecker - Error occurs in the header</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Customize-RowChecker---Error-occurs-in-the-header/</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>Customize RowChecker - Error occurs in the header</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Customize-RowChecker---Error-occurs-in-the-header/</link><pubDate>Tue, 02 Feb 2010 02:15:45 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Our developer teams have fixed the issue. The fix would be available in the next hotfix release. Btw, In server-side, you should not use RootTable.Rows when the Grid is grouped, because the Rows is already grouped and thus contain group structure (not plain 
rows). &lt;/p&gt;
&lt;p&gt;If you want to get the raw count of the rows regardless of group, use 
GetUngrouppedRows().Count. &lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>Customize RowChecker - Error occurs in the header</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Customize-RowChecker---Error-occurs-in-the-header/</link><pubDate>Sun, 01 Nov 2009 20:51:44 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>Yes, the issue would be fixed by our Developer teams. I will let you know when the fix is available.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;Regards,&lt;br /&gt;Handy&lt;/div&gt;</description></item><item><title>Customize RowChecker - Error occurs in the header</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Customize-RowChecker---Error-occurs-in-the-header/</link><pubDate>Fri, 30 Oct 2009 14:38:10 GMT</pubDate><dc:creator>yuting</dc:creator><description>&lt;p&gt;The error "wg.RootTable.GetRow(i) is null" occurs as long as there is a group column. The reason you don't see the error when GroupTotalVisible = true, is that wg.RootTable.GetRow(i) is never got called since the rowscount is 0. Just want to make sure the issue "wg.RootTable.GetRow(i) is null" when there is a group column need to be fixed as well. &lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>Customize RowChecker - Error occurs in the header</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Customize-RowChecker---Error-occurs-in-the-header/</link><pubDate>Fri, 30 Oct 2009 04:00:08 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I can replicate the issue now. There is only one properties that made different result.&lt;/p&gt;
&lt;p&gt;GroupTotalVisible="true"&lt;br /&gt;If I don't use this properties at roottable level, i don't get 0 value but i will get javascript error.&lt;br /&gt;While on your scenario, you used this properties and will always return 0 (without error).&lt;/p&gt;
&lt;p&gt;This regression issue has been forwarded to our developer teams and they will fix this soon.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>Customize RowChecker - Error occurs in the header</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Customize-RowChecker---Error-occurs-in-the-header/</link><pubDate>Thu, 29 Oct 2009 17:18:30 GMT</pubDate><dc:creator>yuting</dc:creator><description>&lt;p&gt;Handy, have you figured out a way to do this?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;</description></item><item><title>Customize RowChecker - Error occurs in the header</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Customize-RowChecker---Error-occurs-in-the-header/</link><pubDate>Tue, 27 Oct 2009 13:00:15 GMT</pubDate><dc:creator>yuting</dc:creator><description>&lt;p&gt;After set &lt;span style="font-size: 13px; color: #ff0000"&gt;ColumnFooters&lt;/span&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;="Yes"&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="font-size: 13px; color: #ff0000"&gt;GroupTotalVisible&lt;/span&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;="True"&lt;/span&gt;, wg.RootTable.GetRowsCount() returns 0. The attached is a sample that shows my scenario. Please check the DisableCheckBox page.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;span style="font-size: 13px; color: #0000ff"&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Customize RowChecker - Error occurs in the header</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Customize-RowChecker---Error-occurs-in-the-header/</link><pubDate>Tue, 27 Oct 2009 05:37:34 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;&lt;span style="color: rgb(63, 63, 63); font-family: 'segoe ui', arial, verdana, tahoma; font-size: 12px; line-height: 18px; "&gt;&amp;nbsp;wg.RootTable.GetRowsCount()&amp;nbsp;&amp;nbsp;does not return 0. The error is located at&amp;nbsp;wg.RootTable.GetRow(i) which is null. In group mode, the structure is changed. Please let me know what your scenario when in grouping mode.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;font class="Apple-style-span" style="font-size: 15px; color: rgb(63, 63, 63); font-family: 'segoe ui', arial, verdana, tahoma; "&gt;&lt;span style="font-size: 12px; line-height: 18px; "&gt;Regards,&lt;br /&gt;Handy&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Customize RowChecker - Error occurs in the header</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Customize-RowChecker---Error-occurs-in-the-header/</link><pubDate>Mon, 26 Oct 2009 18:26:25 GMT</pubDate><dc:creator>yuting</dc:creator><description>&lt;p&gt;You hard code the row number in your sample to uncheck the rowchecker. But I have to set the ForceToEdit = false in the server for more complax condition. I then have to use a for loop to check if the cell is disabled on the client to uncheck it. It works fine only when there are no too many rows since each row calls the for loop. Is there a way to get the row object directly in this situation?&lt;/p&gt;
&lt;p&gt;When there is a GroupColumn, wg.RootTable.GetRowsCount() returns 0 in the WebGrid1_OnCheckBoxClick. How can I fix that?&lt;/p&gt;
&lt;p&gt;The attached is a sample.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;</description></item><item><title>Customize RowChecker - Error occurs in the header</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Customize-RowChecker---Error-occurs-in-the-header/</link><pubDate>Wed, 30 Sep 2009 00:11:41 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;You got error because you discard IsRowChecker at cells level while IsRowChecker at header column needs to check/uncheck IsRowChecker at cells level. I attached a new sample about your requirement. Hope this helps.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>Customize RowChecker - Error occurs in the header</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Customize-RowChecker---Error-occurs-in-the-header/</link><pubDate>Tue, 29 Sep 2009 13:12:51 GMT</pubDate><dc:creator>yuting</dc:creator><description>&lt;p&gt;On your sample, you make the checkbox on each row disabled but if you click on the header checkbox, every row checkbox will become selected. That is not what I wanted. I don't want the disabled row be selectable. I modified your InitializeRow as below, it shows the way I wanted. But when you click on the header checkbox, you'll get the javascript error. Screenshot is attached.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 15px; font-family: calibri"&gt;Is there a way to make the header CheckBox to only&amp;nbsp;select thoes selectable rows? If not, how can I hide or disable&amp;nbsp;the header checkbox when the page is load?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 15px; font-family: calibri"&gt;Thanks,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 15px; font-family: calibri"&gt;Yuting&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;protected void WebGrid1_InitializeRow(object sender, ISNet.WebUI.WebGrid.RowEventArgs e)
    {
        //e.Row.Cells[0].ForceNoEdit = true;
        if (e.Row.Cells[2].Text == "ANATR" || e.Row.Cells[2].Text == "AROUT")
        {
            e.Row.Table.Columns[0].IsRowChecker = false;
            e.Row.ForceNoEdit = true;
        }
        else
        {
            e.Row.Table.Columns[0].IsRowChecker = true;
            e.Row.ForceNoEdit = false;
        }
    }&lt;/pre&gt;
</description></item><item><title>Customize RowChecker - Error occurs in the header</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Customize-RowChecker---Error-occurs-in-the-header/</link><pubDate>Fri, 25 Sep 2009 09:45:19 GMT</pubDate><dc:creator>yuting</dc:creator><description>&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-size: 15px; font-family: calibri"&gt;I am using the RowChecker in a form. Not every row can be selectable, so I set the IsRowChecker to false for that column in that row use the following code.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-size: 15px; font-family: calibri"&gt;But the CheckBox in the header won’t work and got the javascript error "'tagName' is null or not an object" &lt;span style="font-size: 15px; font-family: calibri"&gt;in the attachment. Is there a way to make the header CheckBox work? If not, can I hide the header checkbox?&lt;/span&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;p&gt;&lt;span style="font-size: 15px; font-family: calibri"&gt; &lt;/span&gt;&lt;/p&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-size: 15px; font-family: calibri"&gt;Thanks!&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;protected void _webGrid_InitializeRow(object sender, ISNet.WebUI.WebGrid.RowEventArgs e)
    {                
        if (e.Row.Type == RowType.Record)
        {
            WebGridColumn editColumn = e.Row.Table.Columns.GetNamedItem("EditColumn");
            string reviewID = e.Row.KeyValue.ToString();
            string ownerID = (string)((DataRowView)e.Row.DataRow).Row["OwnerID"];
            WebGridCell selectedRowCell = e.Row.Cells.GetNamedItem("SelectedRow");
            WebGridColumn selectedRowColumn = e.Row.Table.Columns.GetNamedItem("SelectedRow");

            if (new Guid(reviewID) != Guid.Empty &amp;amp;&amp;amp; ownerID == _employeeID)
            {
                selectedRowColumn.IsRowChecker = true;
                //selectedRowColumn.ColumnType = ColumnType.CheckBox;
            }
            else
            {
                e.Row.ForceNoEdit = true;
                selectedRowColumn.IsRowChecker = false;
                //selectedRowColumn.ColumnType = ColumnType.Text;//.EditType = EditType.NoEdit;
                //selectedRowCell.ForceNoEdit = true;
            }
        }
    }
&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;p&gt;&lt;span style="font-size: 15px; font-family: calibri"&gt; &lt;/span&gt;&lt;/p&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-size: 15px; font-family: calibri"&gt;Thanks!&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;protected void _webGrid_InitializeRow(object sender, ISNet.WebUI.WebGrid.RowEventArgs e)
    {                
        if (e.Row.Type == RowType.Record)
        {
            WebGridColumn editColumn = e.Row.Table.Columns.GetNamedItem("EditColumn");
            string reviewID = e.Row.KeyValue.ToString();
            string ownerID = (string)((DataRowView)e.Row.DataRow).Row["OwnerID"];
            WebGridCell selectedRowCell = e.Row.Cells.GetNamedItem("SelectedRow");
            WebGridColumn selectedRowColumn = e.Row.Table.Columns.GetNamedItem("SelectedRow");

            if (new Guid(reviewID) != Guid.Empty &amp;amp;&amp;amp; ownerID == _employeeID)
            {
                selectedRowColumn.IsRowChecker = true;
                //selectedRowColumn.ColumnType = ColumnType.CheckBox;
            }
            else
            {
                e.Row.ForceNoEdit = true;
                selectedRowColumn.IsRowChecker = false;
                //selectedRowColumn.ColumnType = ColumnType.Text;//.EditType = EditType.NoEdit;
                //selectedRowCell.ForceNoEdit = true;
            }
        }
    }
&lt;/pre&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-family: calibri"&gt;&lt;/span&gt; &lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt; &lt;/p&gt;</description></item></channel></rss>