﻿<?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 - Need to maintain template checkbox column value after added a new column using right click popup.</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Need-to-maintain-template-checkbox-column-value-after-added-a-new-column-using-right-click-popup/</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>Need to maintain template checkbox column value after added a new column using right click popup.</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Need-to-maintain-template-checkbox-column-value-after-added-a-new-column-using-right-click-popup/</link><pubDate>Mon, 04 Apr 2011 23:45:19 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;Instead of using template checkbox column, you might want to consider using ‘Row Checker’ feature of WebGrid. The IsRowChecker column property allowing you to create efficient multiple rows selection grid interface quickly. There are numerous automated behavior attached when working in this mode, such as select/deselect all checkbox in column header, application of CheckedRowStyle, batch multiple rows selection by pressing Shift key, and much more.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;One of the advantages using IsRowChecker column is that it has the behavior to persist row checker during PostBack in WebGrid. This makes the row checker is not being cleared during postback.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;The step-by-step below shows how to create IsRowChecker column and enable its PersistRowChecker feature.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;&lt;strong&gt;Adding RowChecker column in WebGrid&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ol style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;&lt;li&gt;Bind WebGrid to the data source.&lt;/li&gt;&lt;li&gt;Set WebGrid’s properties &lt;strong&gt;AllowEdit&lt;/strong&gt; to &lt;strong&gt;True&lt;/strong&gt;.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Right-click&lt;/strong&gt; on WebGrid and click on &lt;strong&gt;WebGrid.NET designer&lt;/strong&gt;.&lt;/li&gt;&lt;li&gt;Go to &lt;strong&gt;Advanced tab&lt;/strong&gt; – &lt;strong&gt;RootTable&lt;/strong&gt; – &lt;strong&gt;Columns&lt;/strong&gt;&lt;/li&gt;&lt;li&gt;Click &lt;strong&gt;Add&lt;/strong&gt; (to add a new column).&lt;/li&gt;&lt;li&gt;Set focus to &lt;strong&gt;Layout&lt;/strong&gt; expandable panel, checked “&lt;strong&gt;Is row checker column&lt;/strong&gt;” checkbox.&lt;/li&gt;&lt;li&gt;Click &lt;strong&gt;Apply&lt;/strong&gt; and &lt;strong&gt;OK&lt;/strong&gt;.&lt;/li&gt;&lt;li&gt;The picture will look like the following.&lt;br /&gt;&lt;img width="445" height="346" src="http://www.intersoftpt.com/Community/Attachments/2480/WebGridDesigner.png" /&gt;&lt;/li&gt;&lt;li&gt;The WebForm will look like the following snapshot:&lt;br /&gt;&lt;img width="482" height="242" src="http://www.intersoftpt.com/Community/Attachments/2480/IsRowCheckerColumn.png" /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;pre&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;Columns&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;&amp;gt;
    &amp;lt;&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;ISWebGrid&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;:&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;WebGridColumn&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;Name&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;="WebGridColumn0"&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;Width&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;="100px"&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;IsRowChecker&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;="true"&amp;gt;
    &amp;lt;/&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;ISWebGrid&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;:&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;WebGridColumn&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;&amp;gt;&lt;/span&gt;
    ...
&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;Columns&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;&lt;strong&gt;Persist row checker during PostBack&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ol style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;&lt;li&gt;Open &lt;strong&gt;WebGrid.NET Designer&lt;/strong&gt;.&lt;/li&gt;&lt;li&gt;Focus on &lt;strong&gt;Popular Settings&lt;/strong&gt; and click &lt;strong&gt;See all properties&lt;/strong&gt;.&lt;/li&gt;&lt;li&gt;Set &lt;strong&gt;PersistRowChecker&lt;/strong&gt; to &lt;strong&gt;True&lt;/strong&gt; in &lt;strong&gt;Advanced&lt;/strong&gt; – &lt;strong&gt;WebGrid&lt;/strong&gt; – &lt;strong&gt;LayoutSettings&lt;/strong&gt;.&lt;/li&gt;&lt;/ol&gt;&lt;pre&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;LayoutSettings&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;AllowEdit&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;="Yes"&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;AllowSelectColumns&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;="Yes"&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;PersistRowChecker&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;="true"&amp;gt;
&amp;lt;/&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;LayoutSettings&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&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>Need to maintain template checkbox column value after added a new column using right click popup.</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Need-to-maintain-template-checkbox-column-value-after-added-a-new-column-using-right-click-popup/</link><pubDate>Mon, 04 Apr 2011 07:55:58 GMT</pubDate><dc:creator>sachindhama</dc:creator><description>&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-size: 15px; font-family: times new roman"&gt;Hi&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-size: 15px; font-family: times new roman"&gt;&lt;/span&gt; &lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-size: 15px; font-family: times new roman"&gt;I have an intersoft web grid in which a template checkbox column exists. When I checked template column checkbox and add a new column using right click on the grid then previous selected value doesn’t maintain. &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: times new roman"&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: times new roman"&gt;Could you please let me know that how to maintain template checkbox column value after added a new column using right click on web grid.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Sachin&lt;/p&gt;</description></item></channel></rss>