﻿<?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 - Rowchecker Column Issue for Grid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Rowchecker-Column-Issue-for-Grid/</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>Rowchecker Column Issue for Grid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Rowchecker-Column-Issue-for-Grid/</link><pubDate>Sun, 16 May 2010 22:35:53 GMT</pubDate><dc:creator>Glayaar</dc:creator><category>Hide RowChecker</category><description>&lt;p&gt;For issue #1, you could use the OnCheckBoxClick client side event handler, this event will be raise for each checked row. In your case, you will need to set the checked property to the old value if the row checker is disabled. Here is the snippet:&lt;/p&gt;&lt;pre&gt;function wgTest_OnCheckBoxClick(controlId, tblName, colName, checkboxValue, originalCheckBoxValue)&lt;br /&gt;{&lt;br /&gt;	var wgTest = ISGetObject(controlId);&lt;br /&gt;&lt;br /&gt;	var chkBoxElem = wgTest.LastChkBox;&lt;br /&gt;&lt;br /&gt;	if (chkBoxElem.getAttribute("disabled") == true)&lt;br /&gt;	    chkBoxElem.checked = originalCheckBoxValue;&lt;br /&gt;	&lt;br /&gt;	return true;&lt;br /&gt;}&lt;/pre&gt;&lt;p&gt;For issue #2, in the OnAfterInitualize client side event handler, you will need to retrieve the checkbox header element and set the display style to none. Here is the snippet:&lt;/p&gt;&lt;pre&gt;function wgTest_OnAfterInitialize(controlId)&lt;br /&gt;{&lt;br /&gt;	var wgTest = ISGetObject(controlId);&lt;br /&gt;&lt;br /&gt;	var headerElem = wgTest.RootTable.GetElement(WG40.COLHEADER, WG40.HTMLDIV);&lt;br /&gt;&lt;br /&gt;	headerElem.getElementsByTagName('input')[0].style.display = "none";&lt;br /&gt;	&lt;br /&gt;	return true;&lt;br /&gt;}&lt;/pre&gt;
&lt;p&gt;The snippet use index 0 for the input because the checkbox is the first column in the WebGrid. &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;   &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Rowchecker Column Issue for Grid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Rowchecker-Column-Issue-for-Grid/</link><pubDate>Sat, 15 May 2010 08:29:42 GMT</pubDate><dc:creator>desaigs81</dc:creator><category>Hide RowChecker</category><description>&lt;p&gt;&lt;span style="font-family: 'lucida sans unicode','sans-serif'; font-size: 10pt"&gt;Hello,
&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'lucida sans unicode','sans-serif'; font-size: 10pt"&gt;&lt;span style="font-family: 'lucida sans unicode','sans-serif'; color: red"&gt;&lt;strong&gt;Note:&lt;em&gt;We are using webgrid7 in MOSS 2007 sharepoint webpart. Please check the scenario in the same environment.&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'lucida sans unicode','sans-serif'; font-size: 10pt"&gt;We have&amp;nbsp;implemented RowChecker column for rid.&amp;nbsp;&amp;nbsp;We have some business logic based on which we are required to make&amp;nbsp;the entire rows non editable. We are successful to achive this functionality. As you know when you implement the rowchecker column, the grid display’s one common checkbox in column header section using which we can select/deselect all the checkboxes. Our problem here is when user clicks on common checkbox; it will select all the checkboxes regardless of the rows which are marked no editable. This is incorrect behavior. 
&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'lucida sans unicode','sans-serif'; font-size: 10pt"&gt;I need answers for following queries of mine?
&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-indent: -0.25in; margin-left: 0.5in; mso-list: l0 level1 lfo1"&gt;&lt;span style="font-family: 'lucida sans unicode','sans-serif'; font-size: 10pt; mso-fareast-font-family: 'lucida sans unicode'"&gt;&lt;span style="mso-list: ignore"&gt;1.&lt;span style="font: 7pt 'times new roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: 'lucida sans unicode','sans-serif'; font-size: 10pt"&gt;The disabled checkboxes should not be checked while, when user checks the header column checkbox. Is there any way where we can do it?
&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-indent: -0.25in; margin-left: 0.5in; mso-list: l0 level1 lfo1"&gt;&lt;span style="font-family: 'lucida sans unicode','sans-serif'; font-size: 10pt; mso-fareast-font-family: 'lucida sans unicode'"&gt;&lt;span style="mso-list: ignore"&gt;2.&lt;span style="font: 7pt 'times new roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: 'lucida sans unicode','sans-serif'; font-size: 10pt"&gt;How can we access the checkbox control for row or header column from server side or client side?, so that we can hide it.
&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'lucida sans unicode','sans-serif'; font-size: 10pt"&gt;
&lt;p&gt; &lt;/p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'lucida sans unicode','sans-serif'; font-size: 10pt"&gt;Waiting for your kind reply.
&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'lucida sans unicode','sans-serif'; font-size: 10pt"&gt;Thanks,
&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'lucida sans unicode','sans-serif'; font-size: 10pt"&gt;G.S
&lt;/span&gt;&lt;/p&gt;

&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
</description></item></channel></rss>