﻿<?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 - Using Checker column. How to check only enabled records by clicking checkbox in a Header </title><link>http://www.intersoftsolutions.com/Community/WebGrid/Using-Checker-column-How-to-check-only-enabled-records-by-clicking-checkbox-in-a-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>Using Checker column. How to check only enabled records by clicking checkbox in a Header </title><link>http://www.intersoftsolutions.com/Community/WebGrid/Using-Checker-column-How-to-check-only-enabled-records-by-clicking-checkbox-in-a-Header/</link><pubDate>Fri, 08 Apr 2011 00:12:43 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;When user clicks the “select/deselect all” checkbox in the column header, the OnCheckBoxClick client-side event is invoked. We can utilize this behavior in order to check/uncheck rows that are enabled.&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;function WebGrid1_OnCheckBoxClick(controlId, tblName, colName, checkboxValue, originalCheckBoxValue) {
    var WebGrid1 = ISGetObject(controlId);
    var rowIndex = WebGrid1.CheckedRowContext.rowIndex;

    if (!WebGrid1.RootTable.GetRow(rowIndex).ForceNoEdit) {
        window.setTimeout(
    function () {
        WebGrid1.RootTable.GetRow(rowIndex).Uncheck();
    }, 1);
    }

    return true;
}&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;The snippet code as shown in above uses “if” to check whether the ForceNoEdit property of current row is true or not. If true (disabled records), then uncheck the checkbox by invoking Uncheck() method.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;Hope this helps.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Using Checker column. How to check only enabled records by clicking checkbox in a Header </title><link>http://www.intersoftsolutions.com/Community/WebGrid/Using-Checker-column-How-to-check-only-enabled-records-by-clicking-checkbox-in-a-Header/</link><pubDate>Thu, 07 Apr 2011 15:09:37 GMT</pubDate><dc:creator>NK1958</dc:creator><description>&lt;p&gt;Hello InterSoft,&lt;/p&gt;
&lt;p&gt;Our grid (ver 7) contain checker column. By default if I check checkbox in a header then all records are checked. What I need to acomplish is: When user click checkbox 'All' in a header then only checkboxes in enabled records should be checked/unchecked. Now in InitRow event I am setting cell to 'ForceNoEdit' and it didn't help (see below). What JS event should I capture to be able to to check only enabled records. Please provide a sample code&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;&lt;span style="font-size: 13px; color: #008000"&gt;&lt;span style="font-size: 13px; color: #008000"&gt;
&lt;p&gt;WebGridCell cell = e.Row.Cells.GetNamedItem("CHECKER");&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;&lt;/span&gt;&lt;span style="font-size: 13px; color: #008000"&gt;&lt;span style="font-size: 13px; color: #008000"&gt;if (cell.Value != null &amp;amp;&amp;amp; cell.Value.ToString().ToUpper() != "PENDING NEW"&amp;nbsp;)&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px; color: #008000"&gt;&lt;span style="font-size: 13px; color: #008000"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;&lt;/span&gt;&lt;span style="font-size: 13px; color: #008000"&gt;&lt;span style="font-size: 13px; color: #008000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cell.ForceNoEdit = true; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px; color: #008000"&gt;&lt;span style="font-size: 13px; color: #008000"&gt;&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; </description></item></channel></rss>