﻿<?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 - Select All for Checkbox</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Select-All-for-Checkbox/</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>Select All for Checkbox</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Select-All-for-Checkbox/</link><pubDate>Wed, 26 Nov 2014 11:52:08 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;When a column has its IsRowChecker property set to True, a few other properties will be automatically configured such as Width to 25px, ColumnType to Checkbox, SelectColumns To No and so on. The "select/deselect all" checkbox in Caption is automatically generated for IsRowChecker column. The code for the select/deselect all functionality has also been written internally.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Since the column type of Row checker column is checkbox, Caption property won't take effect when set. However, you can use the "hack" technique to the row checker element to add label element, such as shown in the following JS function.&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;function SetColumnCaption()
{
    var grid = ISGetObject("WebGrid1");
    var rowCheckerElm = grid.RootTable.GetElement(WG40.COLHEADER, WG40.HTMLTABLE).cells[1].childNodes[0].childNodes[0].childNodes[0];

    var newLabel = document.createElement("label");
    var newContent = document.createTextNode("this is text node");
    newLabel.appendChild(newContent);

    grid.RootTable.GetElement(WG40.COLHEADER, WG40.HTMLTABLE).cells[1].childNodes[0].childNodes[0].appendChild(newLabel);

    return true;
}&lt;/pre&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Hope this help.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Select All for Checkbox</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Select-All-for-Checkbox/</link><pubDate>Fri, 21 Nov 2014 12:32:23 GMT</pubDate><dc:creator>Rajee</dc:creator><description>&lt;p&gt;Waiting For reply. Need quick response&lt;/p&gt;</description></item><item><title>Select All for Checkbox</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Select-All-for-Checkbox/</link><pubDate>Thu, 20 Nov 2014 14:21:45 GMT</pubDate><dc:creator>Rajee</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I have multiple Checkboxes in the grid. I wanted to allow user to do select all. If i put the Rowchecker I am&amp;nbsp;&lt;/p&gt;&lt;p&gt;not able to add the caption. &amp;nbsp;As there are mutiple Checkboxes i want select all option with Header. can you provide me solution?&lt;/p&gt;&lt;p&gt;Waiting for reply.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;</description></item></channel></rss>