﻿<?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 - checkbox of header in webgird client event, </title><link>http://www.intersoftsolutions.com/Community/WebGrid/checkbox-of-header-in-webgird-client-event/</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>checkbox of header in webgird client event, </title><link>http://www.intersoftsolutions.com/Community/WebGrid/checkbox-of-header-in-webgird-client-event/</link><pubDate>Fri, 02 Jan 2015 01:54:59 GMT</pubDate><dc:creator>leo.c</dc:creator><description>&lt;p&gt;Hi Spring gao,&lt;/p&gt;&lt;p&gt;Sorry for my late response.&lt;/p&gt;&lt;p&gt;If you want that script to run whenever checkbox (on checker column)&amp;nbsp;was clicked, you could add OnCheckBoxClick client event which could be access via WebGrid Properties &amp;gt;&amp;gt; LayoutSettings &amp;gt;&amp;gt; ClientSideEvents &amp;gt;&amp;gt; OnCheckBoxClick. Specify JavaScript that you want to run there.&lt;/p&gt;&lt;p&gt;The result reflected on ASP code side would be something like bellow&lt;/p&gt;&lt;pre&gt;&amp;lt;LayoutSettings&amp;gt;&lt;br&gt;&amp;lt;ClientSideEvents OnCheckBoxClick="getCheckedValues()"/&amp;gt;&lt;br&gt;&amp;lt;/LayoutSettings&amp;gt;&lt;/pre&gt;&lt;p&gt;Hope this will be useful.&lt;/p&gt;&lt;p&gt;Best Regards,&lt;br&gt;Leo&lt;br&gt;&lt;/p&gt;</description></item><item><title>checkbox of header in webgird client event, </title><link>http://www.intersoftsolutions.com/Community/WebGrid/checkbox-of-header-in-webgird-client-event/</link><pubDate>Wed, 24 Dec 2014 06:56:47 GMT</pubDate><dc:creator>spring2007</dc:creator><description>&lt;p&gt;first,Thank you leo chandra, &lt;br&gt;but i don't know user click checkbox of head,it's keypoint.&lt;br&gt;how to know?&lt;/p&gt;</description></item><item><title>checkbox of header in webgird client event, </title><link>http://www.intersoftsolutions.com/Community/WebGrid/checkbox-of-header-in-webgird-client-event/</link><pubDate>Tue, 23 Dec 2014 01:08:35 GMT</pubDate><dc:creator>leo.c</dc:creator><description>&lt;p&gt;Hi Spring gao,&lt;/p&gt;&lt;p&gt;You could use the following Javascript code to accomplish it. (run it when your button click).&lt;/p&gt;&lt;pre&gt;function getCheckedValues(){
    // get WebGrid with ID. in this example I use WebGrid1
    var grd = wgGetGridById("WebGrid1");
    var table = grd.GetRootTable();

    //this is the point. get all checked row of your grid.
    var checkedRows = table.GetCheckedRows();
    var result = "";
    for (var i = 0; i &amp;lt; checkedRows.length; i++)
    {
        // append the needed value to result. in this example I use value in column index 3 and index 4.
        result += checkedRows[i].cells[3].innerText +"|"+ checkedRows[i].cells[4].innerText;
        result += ",";
    }
    // remove leading separator (,)
    result = result.replace(/,$/, "");
    // pass all to textarea/input for showing the result. In this example I used textarea tag with id:"textarea"
    document.getElementById("textarea").value = result;
}&lt;/pre&gt;&lt;p&gt;That should do the trick.&lt;/p&gt;</description></item><item><title>checkbox of header in webgird client event, </title><link>http://www.intersoftsolutions.com/Community/WebGrid/checkbox-of-header-in-webgird-client-event/</link><pubDate>Mon, 22 Dec 2014 01:40:05 GMT</pubDate><dc:creator>spring2007</dc:creator><description>&lt;p&gt;I want to like attach file. when user click checkbox of head, checkbox&amp;nbsp;of column will all check/uncheck and "工号"+“英文名”column value show in textbox.&lt;/p&gt;
&lt;p&gt;how to&amp;nbsp;accomplish with&amp;nbsp;client event ?&lt;/p&gt;
&lt;p&gt;thank you &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>