﻿<?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 - Setting Client-Side Row Object Checked Property So It Persists</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid---Setting-Client-Side-Row-Object-Checked-Property-So-It-Persists/</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 - Setting Client-Side Row Object Checked Property So It Persists</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid---Setting-Client-Side-Row-Object-Checked-Property-So-It-Persists/</link><pubDate>Thu, 29 Apr 2010 12:21:13 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;Ok, I am sorry for missunderstanding your question. Normally, we use Check() method to check our checkbox. such as : grid.RootTable.GetRow(0).Check();&lt;br /&gt;&lt;br /&gt;But you can know the state of the checkbox is being checked or not by inspecting the element.&lt;/p&gt;
&lt;p&gt;e.g&lt;/p&gt;
&lt;p&gt;grid.RootTable.GetRow(0).GetCells()[0].GetElement().children(0).checked;&lt;/p&gt;
&lt;p&gt;Maybe with inspecting the element, you can persist your custom checkbox because all checkbox control should have this properties in its element. Hope this helps.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>WebGrid - Setting Client-Side Row Object Checked Property So It Persists</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid---Setting-Client-Side-Row-Object-Checked-Property-So-It-Persists/</link><pubDate>Wed, 28 Apr 2010 11:49:01 GMT</pubDate><dc:creator>PRISMAY</dc:creator><description>&lt;p&gt;Hi Handy,&lt;/p&gt;
&lt;p&gt;Yes, I understand all that and I'm not asking you to "know" what our check box does.  I just want to take advantage of an existing property that I can set.  So how can I set the Checked property on the client side?  Thanks.&lt;/p&gt;</description></item><item><title>WebGrid - Setting Client-Side Row Object Checked Property So It Persists</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid---Setting-Client-Side-Row-Object-Checked-Property-So-It-Persists/</link><pubDate>Wed, 28 Apr 2010 11:46:43 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi Yousif,&lt;/p&gt;&lt;p&gt;Yes, I am aware that you could not use our checkbox. So, I think you would need to handle by implement new attribute or properties from your own checkbox. Besides we don't know for sure what your custom checkbox behaviour.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>WebGrid - Setting Client-Side Row Object Checked Property So It Persists</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid---Setting-Client-Side-Row-Object-Checked-Property-So-It-Persists/</link><pubDate>Tue, 27 Apr 2010 12:07:50 GMT</pubDate><dc:creator>PRISMAY</dc:creator><description>&lt;p&gt;Hello Handy,&lt;/p&gt;
&lt;p&gt;Yes, you're right about implementing our own property.  I was just hoping we can just set the Checked property since it's already there and would make sense to leverage it rather than create something new.  I was hoping there was a client-side call that wasn't documented that we can leverage to do that.&lt;/p&gt;
&lt;p&gt;Unfortunately we can't use your check box because it uses the standard check box that doesn't fit into our style and design.&lt;/p&gt;</description></item><item><title>WebGrid - Setting Client-Side Row Object Checked Property So It Persists</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid---Setting-Client-Side-Row-Object-Checked-Property-So-It-Persists/</link><pubDate>Tue, 27 Apr 2010 12:04:14 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi Yousif,&lt;/p&gt;&lt;p&gt;I am not sure for custom checkbox because it is a custom checkbox from your end. It seems, you need to implement a properties or attribute to persist your custom checkbox. However, if you are using our checkbox, we have some properties such as "&lt;i&gt;&lt;b&gt;RestoreRowSelection&lt;/b&gt;&lt;/i&gt;" or "&lt;b&gt;&lt;i&gt;PersistRowChecker&lt;/i&gt;&lt;/b&gt;". With those properties, user would able to retireve their checkbox state when postback or inside paging.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>WebGrid - Setting Client-Side Row Object Checked Property So It Persists</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid---Setting-Client-Side-Row-Object-Checked-Property-So-It-Persists/</link><pubDate>Mon, 26 Apr 2010 10:05:50 GMT</pubDate><dc:creator>PRISMAY</dc:creator><description>&lt;p&gt;We have our own custom check box and we set the row object Checked property on the client side when the check box is checked or unchecked.  This setting, however, doesn't persist.  Once we retrieve the row object, e.g.,&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #0000ff; font-size: 9px"&gt;&lt;span style="color: #0000ff; font-size: 9px"&gt;var&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 9px"&gt; oRow = oGrid.RootTable.GetRow(i);&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size: 9px"&gt;oRow.Checked = MyCheckBoxCheckState(checkBoxId);&lt;/span&gt; &lt;/p&gt;
&lt;p&gt;When I retrieve the row again, the Checked property is back to its default or whatever it was when the grid loaded.  Is there a method I can call on the client side that will set this property?  The way we retrieve the checked rows is by drilling into the grid and get the checked state of our custom check box, but it would be nice to be able to set the row's Checked property and have it persist on the client side.&lt;/p&gt;
&lt;p&gt;Also, the Rows collection is null on the oGrid.RootTable object but the _tableCache shows there are rows loaded.  I'm not sure why this would be null when the rows are available via GetRow for example.&lt;/p&gt;</description></item></channel></rss>