﻿<?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 - adding a checkbox to Webgrid's groupping row</title><link>http://www.intersoftsolutions.com/Community/WebGrid/adding-a-checkbox-to-Webgrids-groupping-row/</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>adding a checkbox to Webgrid's groupping row</title><link>http://www.intersoftsolutions.com/Community/WebGrid/adding-a-checkbox-to-Webgrids-groupping-row/</link><pubDate>Thu, 13 Mar 2014 23:19:30 GMT</pubDate><dc:creator>bernard</dc:creator><description>Hi Roi,&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;I think you could add &lt;b&gt;disabled &lt;/b&gt;attribute in each checkbox then by using javascript you can put &lt;b&gt;checked &lt;/b&gt;attribute to each checkbox that you want to checked. By using this method, you have to handle the select row method of WebGrid so WebGrid can select its row properly like using RowChecker API. Hope this helps.&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;Regards,&lt;br /&gt;Bernard&lt;/div&gt;</description></item><item><title>adding a checkbox to Webgrid's groupping row</title><link>http://www.intersoftsolutions.com/Community/WebGrid/adding-a-checkbox-to-Webgrids-groupping-row/</link><pubDate>Thu, 13 Mar 2014 05:09:41 GMT</pubDate><dc:creator>roiu@a-g-r-e.com</dc:creator><description>&lt;p&gt;Bernard Thanks. &lt;/p&gt;&lt;p&gt;How do I get the KeyValue of the groupped row (or the 'groupped by value', to be exact)?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I was able to create the groupped header checkbox as you described.&lt;/p&gt;
&lt;p&gt;I'm also able to Check() and Uncheck() it's GroupChildRows.&lt;/p&gt;
&lt;p&gt;BUT:&lt;/p&gt;
&lt;p&gt;I would like the ChildRows Checkboxes to be &lt;b&gt;read-only&lt;/b&gt; by default. So that the only way to be able to Check()/Unchek() a row is by checking it's parent groupped checkedbox.&lt;/p&gt;
&lt;p&gt;If I set either ForceNoEdit (e.Row.Cells.GetNamedItem("RowChecker").ForceNoEdit = true;) or&lt;/p&gt;
&lt;p&gt;grid_grouppedRows[i].RowElement.cells[2].childNodes[0].disabled = "disabled";&lt;/p&gt;
&lt;p&gt;the row is &lt;b&gt;not checked &lt;/b&gt;and .GetCheckedRows() contains nothing&lt;b&gt;.&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;Please help me find a way to be able to Check()/Uncheck() a row, even though it's checkbox is disabled.&lt;/p&gt;</description></item><item><title>adding a checkbox to Webgrid's groupping row</title><link>http://www.intersoftsolutions.com/Community/WebGrid/adding-a-checkbox-to-Webgrids-groupping-row/</link><pubDate>Wed, 12 Mar 2014 23:46:54 GMT</pubDate><dc:creator>bernard</dc:creator><description>&lt;p&gt;Hi Roi,&lt;/p&gt;&lt;p&gt;I think you can't add this in server side because we are using FlyPostBack when Grouping in WebGrid. But to add checkbox in each group row, you could add script in client side like this&lt;/p&gt;&lt;pre&gt;function AddGroupCheckBox(controlId) {
    var grid = ISGetObject(controlId);
    var groupRows = grid.RootTable.GetGroupRows();
    for (var i = 0; i &amp;lt; groupRows.length; i&amp;#43;&amp;#43;) {
        groupRows[i].RowElement.children[1].innerHTML = "&amp;lt;input type='checkbox'&amp;gt;" &amp;#43; groupRows[i].RowElement.children[1].innerHTML
    }
}&lt;/pre&gt;
&lt;p&gt;I will add this scenario as feature request and I will let you know if I heard any news regarding this feature request from our developer team. Hope this helps.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Bernard&lt;/p&gt;</description></item><item><title>adding a checkbox to Webgrid's groupping row</title><link>http://www.intersoftsolutions.com/Community/WebGrid/adding-a-checkbox-to-Webgrids-groupping-row/</link><pubDate>Wed, 12 Mar 2014 05:18:55 GMT</pubDate><dc:creator>roiu@a-g-r-e.com</dc:creator><description>&lt;p&gt;Bernard Hi, &lt;/p&gt;&lt;p&gt;Thanks, that would be fantastic. &lt;/p&gt;
&lt;p&gt;Till then, is it possible to add an html input tag (&amp;lt;input type="checkbox"... /&amp;gt;) to the GroupHeader header row HTML from SERVER SIDE?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;InitializeRow(object sender, ISNet.WebUI.WebGrid.RowEventArgs e)
{
 if (e.Row.Type.ToString() == "GroupHeader"){
e.Row.Cells[0].Column... ???
}
}&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>adding a checkbox to Webgrid's groupping row</title><link>http://www.intersoftsolutions.com/Community/WebGrid/adding-a-checkbox-to-Webgrids-groupping-row/</link><pubDate>Wed, 12 Mar 2014 00:41:36 GMT</pubDate><dc:creator>bernard</dc:creator><description>&lt;p&gt;Hi Roi,&lt;/p&gt;&lt;p&gt;Regarding to your scenario, I can make this scenario as feature request. Right now, we don't have any row checker column in its header. Perhaps, you could add this on client side by adding 1 Checkbox before the Group name. But you need to maintain this state everytime you do grouping in WebGrid. In each header checkbox, you should add a function so WebGrid could check/uncheck all item in that group. By using this method, you can achieve this scenario but there was too much effort to maintain this state. Maybe I can add this scenario as feature request so our developer team should consider this and maybe they would add this feature in our WebGrid so those checkbox will be handled by our WebGrid API. Look forward to hear any feedback from you so  can help you further.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Bernard&lt;/p&gt;</description></item><item><title>adding a checkbox to Webgrid's groupping row</title><link>http://www.intersoftsolutions.com/Community/WebGrid/adding-a-checkbox-to-Webgrids-groupping-row/</link><pubDate>Tue, 11 Mar 2014 10:11:38 GMT</pubDate><dc:creator>roiu@a-g-r-e.com</dc:creator><description>&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Is it possible to add a checkbox to a webgrid's groupping row so it would be possible to &lt;/p&gt;
&lt;p&gt;check/uncheck all rows (RowChecker) in the groupped section?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;ISWebGrid:WebGridColumn AllowGrouping="No" AllowSizing="No" AllowSorting="No" DataMember="COL" ColumnType="CheckBox" IsRowChecker="True" Name="RowChecker" ShowInSelectColumns="No" Width="30px"&amp;gt;&amp;lt;/ISWebGrid:WebGridColumn&amp;gt;          &lt;/p&gt;
&lt;p&gt;&amp;lt;ISWebGrid:WebGridColumn Caption="GROUP_COL" Name="GROUP_COL" DataMember="GROUP_COL"&amp;gt;&amp;lt;/ISWebGrid:WebGridColumn&amp;gt;                                                  &lt;/p&gt;
&lt;p&gt;PrepareDataBinding(object sender, ISNet.WebUI.WebGrid.DataSourceEventArgs e)&lt;/p&gt;
&lt;p&gt;WebGridGroup wg_column = new WebGridGroup();&lt;/p&gt;
&lt;p&gt;wg_column.Column = columns.GetNamedItem("GROUP_COL");            &lt;/p&gt;
&lt;p&gt;grid.RootTable.GroupedColumns.Add(wg_column);   &lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thanks       &lt;/p&gt;</description></item></channel></rss>