﻿<?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 - Capturing the Click Event(clientside) for a checkbox in  a webgrid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Capturing-the-Click-Eventclientside-for-a-checkbox-in-a-webgrid/</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>Capturing the Click Event(clientside) for a checkbox in  a webgrid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Capturing-the-Click-Eventclientside-for-a-checkbox-in-a-webgrid/</link><pubDate>Mon, 14 Jun 2010 22:35:31 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;Handy’s post has lead to the correct answer.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;I made a simple test on my local by binding WebGrid to ‘Products’ table of Northwind database. The table has ‘Discontinued’ field which its data type is Boolean and represented as checkbox in WebGrid.&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 column declared as follow.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="font-family: 'courier new'; color: blue; font-size: 10pt"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: 'courier new'; color: #a31515; font-size: 10pt"&gt;ISWebGrid&lt;/span&gt;&lt;span style="font-family: 'courier new'; color: blue; font-size: 10pt"&gt;:&lt;/span&gt;&lt;span style="font-family: 'courier new'; color: #a31515; font-size: 10pt"&gt;WebGridColumn&lt;/span&gt; &lt;span style="font-family: 'courier new'; color: red; font-size: 10pt"&gt;Caption&lt;/span&gt;&lt;span style="font-family: 'courier new'; color: blue; font-size: 10pt"&gt;="Discontinued"&lt;/span&gt; &lt;span style="font-family: 'courier new'; color: red; font-size: 10pt"&gt;DataMember&lt;/span&gt;&lt;span style="font-family: 'courier new'; color: blue; font-size: 10pt"&gt;="Discontinued"&lt;/span&gt; &lt;span style="font-family: 'courier new'; color: red; font-size: 10pt"&gt;DataType&lt;/span&gt;&lt;span style="font-family: 'courier new'; color: blue; font-size: 10pt"&gt;="System.Boolean"&lt;/span&gt;
    &lt;span style="font-family: 'courier new'; color: red; font-size: 10pt"&gt;Name&lt;/span&gt;&lt;span style="font-family: 'courier new'; color: blue; font-size: 10pt"&gt;="Discontinued"&lt;/span&gt; &lt;span style="font-family: 'courier new'; color: red; font-size: 10pt"&gt;Width&lt;/span&gt;&lt;span style="font-family: 'courier new'; color: blue; font-size: 10pt"&gt;="100px"&lt;/span&gt; &lt;span style="font-family: 'courier new'; color: red; font-size: 10pt"&gt;ColumnType&lt;/span&gt;&lt;span style="font-family: 'courier new'; color: blue; font-size: 10pt"&gt;="CheckBox"&lt;/span&gt; &lt;span style="font-family: 'courier new'; color: red; font-size: 10pt"&gt;EditType&lt;/span&gt;&lt;span style="font-family: 'courier new'; color: blue; font-size: 10pt"&gt;="Checkbox"&amp;gt;&lt;/span&gt;
&lt;span style="font-family: 'courier new'; color: blue; font-size: 10pt"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-family: 'courier new'; color: #a31515; font-size: 10pt"&gt;ISWebGrid&lt;/span&gt;&lt;span style="font-family: 'courier new'; color: blue; font-size: 10pt"&gt;:&lt;/span&gt;&lt;span style="font-family: 'courier new'; color: #a31515; font-size: 10pt"&gt;WebGridColumn&lt;/span&gt;&lt;span style="font-family: 'courier new'; color: blue; font-size: 10pt"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;...
&lt;span style="font-family: 'courier new'; color: blue; font-size: 10pt"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: 'courier new'; color: #a31515; font-size: 10pt"&gt;LayoutSettings&lt;/span&gt; &lt;span style="font-family: 'courier new'; color: red; font-size: 10pt"&gt;AllowAddNew&lt;/span&gt;&lt;span style="font-family: 'courier new'; color: blue; font-size: 10pt"&gt;="Yes"&lt;/span&gt; &lt;span style="font-family: 'courier new'; color: red; font-size: 10pt"&gt;AllowDelete&lt;/span&gt;&lt;span style="font-family: 'courier new'; color: blue; font-size: 10pt"&gt;="Yes"&lt;/span&gt; &lt;span style="font-family: 'courier new'; color: red; font-size: 10pt"&gt;AllowEdit&lt;/span&gt;&lt;span style="font-family: 'courier new'; color: blue; font-size: 10pt"&gt;="Yes"&amp;gt;&lt;/span&gt;
    &lt;span style="font-family: 'courier new'; color: blue; font-size: 10pt"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: 'courier new'; color: #a31515; font-size: 10pt"&gt;ClientSideEvents&lt;/span&gt; &lt;span style="font-family: 'courier new'; color: red; font-size: 10pt"&gt;OnCheckBoxClick&lt;/span&gt;&lt;span style="font-family: 'courier new'; color: blue; font-size: 10pt"&gt;="WebGrid1_OnCheckBoxClick" /&amp;gt;&lt;/span&gt;
&lt;span style="font-family: 'courier new'; color: blue; font-size: 10pt"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-family: 'courier new'; color: #a31515; font-size: 10pt"&gt;LayoutSettings&lt;/span&gt;&lt;span style="font-family: 'courier new'; color: blue; font-size: 10pt"&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;I simply add OnCheckBoxClick client side event of WebGrid and put a single alert in it. The alert is invoked when I click any checkbox on ‘Discontinued’ column of WebGrid. So, OnCheckBoxClick client side event should be suitable with your scenario.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Capturing the Click Event(clientside) for a checkbox in  a webgrid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Capturing-the-Click-Eventclientside-for-a-checkbox-in-a-webgrid/</link><pubDate>Mon, 14 Jun 2010 12:38:13 GMT</pubDate><dc:creator>JohnnyBravo</dc:creator><description>&lt;p&gt;Unfortunately, I am just using checkbox.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Any other ideas?&lt;/p&gt;</description></item><item><title>Capturing the Click Event(clientside) for a checkbox in  a webgrid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Capturing-the-Click-Eventclientside-for-a-checkbox-in-a-webgrid/</link><pubDate>Fri, 11 Jun 2010 14:56:01 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;If you are using our ISRowChecker for your checkbox, We have a clientside event called "OnCheckBoxClick". Hope you could use this event for your scenario.&lt;/p&gt;&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>Capturing the Click Event(clientside) for a checkbox in  a webgrid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Capturing-the-Click-Eventclientside-for-a-checkbox-in-a-webgrid/</link><pubDate>Fri, 11 Jun 2010 13:53:23 GMT</pubDate><dc:creator>JohnnyBravo</dc:creator><description>&lt;p&gt;What event is fired on the client side when the user checks a checbox on a webgrid? I need to capture it and open another webpage when this occurs...&lt;/p&gt;</description></item></channel></rss>