﻿<?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 - Changing checkbox value from client side in grid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Changing-checkbox-value-from-client-side-in-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>Changing checkbox value from client side in grid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Changing-checkbox-value-from-client-side-in-grid/</link><pubDate>Mon, 12 Oct 2015 07:04:11 GMT</pubDate><dc:creator>yudi</dc:creator><category>Checkbox</category><category>checkbox grid column</category><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Glad to know that the snippet code helps.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Should you need further assistance or run into any problems regarding our controls, feel free to post it into our forum. We would be happy to assist you again.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Changing checkbox value from client side in grid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Changing-checkbox-value-from-client-side-in-grid/</link><pubDate>Fri, 09 Oct 2015 08:05:45 GMT</pubDate><dc:creator>ravinder</dc:creator><category>Checkbox</category><category>checkbox grid column</category><description>&lt;p&gt;Hi Yudi,&lt;/p&gt;&lt;p&gt;It works !!! Thanks a lot!&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;Ravinder&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Changing checkbox value from client side in grid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Changing-checkbox-value-from-client-side-in-grid/</link><pubDate>Fri, 09 Oct 2015 07:52:54 GMT</pubDate><dc:creator>yudi</dc:creator><category>Checkbox</category><category>checkbox grid column</category><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Please try to use one of the following snippet code to change checkbox value.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;function SetCheckBoxValue(){    // retrieves WebGrid's object    var grid = ISGetObject("WebGrid1");
    var selectedRowObj = grid.GetSelectedObject().ToRowObject();
    var checkboxCell = selectedRowObj.GetCells().GetNamedItem("MyCheckboxColumn");
    var cellElement = checkboxCell.GetElement();

    // use following code to make checkbox checked
    cellElement.children[0].checked = true;

    // use following code to make checkbox unchecked
    cellElement.children[0].checked = false;

    // or invoke click() method to simulates the click event on checkbox
    cellElement.children[0].click();
}&lt;/pre&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Hope this helps.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Changing checkbox value from client side in grid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Changing-checkbox-value-from-client-side-in-grid/</link><pubDate>Thu, 08 Oct 2015 16:05:07 GMT</pubDate><dc:creator>ravinder</dc:creator><category>Checkbox</category><category>checkbox grid column</category><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;Does anyone know the solution for this. &lt;b&gt;This is very urgent request....&lt;/b&gt;&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;Ravinder&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Changing checkbox value from client side in grid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Changing-checkbox-value-from-client-side-in-grid/</link><pubDate>Tue, 06 Oct 2015 15:47:23 GMT</pubDate><dc:creator>ravinder</dc:creator><category>Checkbox</category><category>checkbox grid column</category><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I have a simple situation wherein, I have Intersoft grid and some editable columns in the grid.&lt;/p&gt;&lt;p&gt;I also have a checkbox column in the grid.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Now, the case is that, if user changes any value(text) in one of my grid columns, then I want my checkbox value to be changed i.e. If the checkbox value is true then It should become false.&lt;/p&gt;&lt;p&gt;Here my sample client side code snippet for that:&lt;/p&gt;&lt;p&gt;var checkboxCell = grid.GetSelectedObject().ToRowObject().GetCells().GetNamedItem("MyCheckboxColumn");&lt;/p&gt;&lt;p&gt;I am able to get the Checkbox cell in the above line.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;checkboxCell&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;.checked = false;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;checkboxCell&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;.SetValue(false, false);&lt;/span&gt;&lt;/p&gt;&lt;p&gt;I tried both the above options to set the checkbox value, but it does not change the checkbox value.&lt;/p&gt;&lt;p&gt;The server side code to create the checkbox column:&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;MyColumn.ColumnType = ColumnType.CheckBox;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;MyColumn.EditType = EditType.Checkbox;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;MyColumn.FilterEditType = FilterEditType.Checkbox;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;I hope this is a simple case which many of us would have already faced. Please let us know if someone knows the solution for this, since this is quite urgent...&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;I also tried using&amp;nbsp;&lt;/span&gt;IsRowChecker property set as True, but then also it did not work, moreover, I do not want to use IsRowChecker since in the future we may have multiple checkboxes in this grid.&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;Thanks,&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;Ravinder&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>