﻿<?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 - WebGrid Checkbox issue</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Checkbox-issue/</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>WebGrid Checkbox issue</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Checkbox-issue/</link><pubDate>Fri, 04 Jun 2010 14:53:27 GMT</pubDate><dc:creator>yudi</dc:creator><category>WebGrid Checkbox issue</category><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;This specific scenario will be perfect using html button and call javascript function in on click event to handle the select/deselect rows by checking/un-checking the IsRowChecker.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;First, we’ll need an input button.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&amp;lt;input id="Button1" type="button" value="Select/Deselect All Rows" onclick="return Button1_onclick()" /&amp;gt;&lt;/pre&gt;

&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Next, in OnClick event of the button, we need to &lt;strong&gt;get the input element of the IsRowChecker&lt;/strong&gt;; and then simply &lt;strong&gt;call “click()” method of the checkbox input element to trigger ‘wgCheckBoxHeaderClick(this)’ function&lt;/strong&gt;. The ‘wgCheckBoxHeaderClick(this)’ function is the onclick function of the IsRowChecker checkbox input element.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;function Button1_onclick() {
    var WebGrid1 = ISGetObject("WebGrid1");
    var rowCheckerElm = WebGrid1.RootTable.GetElement(WG40.COLHEADER, WG40.HTMLTABLE).cells[1].childNodes[0].childNodes[0].childNodes[0];

    rowCheckerElm.click();

    return true;
}&lt;/pre&gt;

&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Please let us know whether this helps or not.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>WebGrid Checkbox issue</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Checkbox-issue/</link><pubDate>Fri, 04 Jun 2010 03:11:28 GMT</pubDate><dc:creator>hirenandharia</dc:creator><category>WebGrid Checkbox issue</category><description>&lt;p&gt;Hello all,&lt;/p&gt;&lt;p&gt;I have one button and on its click event i want to fire click event of checkall checkbox that is on header of the web grid.&lt;/p&gt;
&lt;p&gt;No matter how to called either javascript or server side.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Hiren Andharia&lt;/p&gt;</description></item></channel></rss>