﻿<?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 - SaveLayour and CheckedRows array</title><link>http://www.intersoftsolutions.com/Community/WebGrid/SaveLayour-and-CheckedRows-array/</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>SaveLayour and CheckedRows array</title><link>http://www.intersoftsolutions.com/Community/WebGrid/SaveLayour-and-CheckedRows-array/</link><pubDate>Thu, 18 Jun 2015 02:53:09 GMT</pubDate><dc:creator>leo.c</dc:creator><description>&lt;p&gt;Hi John,&lt;/p&gt;&lt;p&gt;You're welcome. Glad that it worked for you.&lt;/p&gt;&lt;p&gt;Best Regards,&lt;br&gt;Leo&lt;br&gt;&lt;/p&gt;</description></item><item><title>SaveLayour and CheckedRows array</title><link>http://www.intersoftsolutions.com/Community/WebGrid/SaveLayour-and-CheckedRows-array/</link><pubDate>Wed, 17 Jun 2015 11:02:38 GMT</pubDate><dc:creator>John.Bonin@dot.gov</dc:creator><description>Thank you so much, this solves the problem.&amp;nbsp; We are 3 weeks away from release and this was a major feature that all users were requesting.&amp;nbsp; Again THANK YOU.&lt;br&gt;&lt;br&gt;&lt;br&gt;</description></item><item><title>SaveLayour and CheckedRows array</title><link>http://www.intersoftsolutions.com/Community/WebGrid/SaveLayour-and-CheckedRows-array/</link><pubDate>Wed, 17 Jun 2015 04:11:01 GMT</pubDate><dc:creator>leo.c</dc:creator><description>&lt;p&gt;Hi John,&lt;/p&gt;&lt;p&gt;I have look at your sample. Changing your sample WebGrid1_PrepareDataBinding to the following should solved your issue:&lt;/p&gt;&lt;pre&gt;Protected Sub WebGrid1_PrepareDataBinding(ByVal sender As Object, ByVal e As ISNet.WebUI.WebGrid.DataSourceEventArgs) Handles WebGrid1.PrepareDataBinding
	' This function will restore to the Filter Row the saved filter
	If Not IsPostBack Then
		Dim _file As String = Server.MapPath("~/App_Data/UserLayout/UserStructure.xml")
		If IO.File.Exists(_file) Then
			With Me.WebGrid1
				.LoadTablesStructureFromXml(_file)
				.RootTable.FilteredColumns.Clear()
				.RootTable.GroupedColumns.Clear()
			End With
		End If&lt;br&gt;                &lt;em&gt;&lt;strong&gt;// Add Following Line&lt;/strong&gt;&lt;/em&gt;
		WebGrid1.RootTable.DataKeyField = "CustomerID"
	End If
End Sub&lt;/pre&gt;&lt;p&gt;Hope this help could help you.&lt;/p&gt;&lt;p&gt;Best Regards,&lt;br&gt;Leo&lt;br&gt;&lt;/p&gt;</description></item><item><title>SaveLayour and CheckedRows array</title><link>http://www.intersoftsolutions.com/Community/WebGrid/SaveLayour-and-CheckedRows-array/</link><pubDate>Wed, 10 Jun 2015 14:33:07 GMT</pubDate><dc:creator>John.Bonin@dot.gov</dc:creator><description>"Support requests are answered in less than 48-hours, guaranteed."&lt;br&gt;&lt;br&gt;Well....&lt;br&gt;</description></item><item><title>SaveLayour and CheckedRows array</title><link>http://www.intersoftsolutions.com/Community/WebGrid/SaveLayour-and-CheckedRows-array/</link><pubDate>Tue, 09 Jun 2015 11:56:52 GMT</pubDate><dc:creator>John.Bonin@dot.gov</dc:creator><description>Its been over 6 days and still no word from intersoft!&amp;nbsp; Why?&lt;br&gt;</description></item><item><title>SaveLayour and CheckedRows array</title><link>http://www.intersoftsolutions.com/Community/WebGrid/SaveLayour-and-CheckedRows-array/</link><pubDate>Wed, 03 Jun 2015 11:53:27 GMT</pubDate><dc:creator>John.Bonin@dot.gov</dc:creator><description>&lt;p&gt;Support?&lt;/p&gt;&lt;p&gt;I can reproduce this is with the 2014 R2 samples.&amp;nbsp; Replace the attached files to the WebGrid samples and run.&amp;nbsp; First off using the Column Select Action, Select Columns and hide one or 2 columns from Grid, then click on Save Layout button.&amp;nbsp; Next you need to refresh page or better still close browser and rerun.&amp;nbsp; Then select a few rows and click on Get Checked Row in Server button and you will see the error.&amp;nbsp; If you look at the CheckRows array list you will notice that the values for each row is empty.&lt;/p&gt;&lt;p&gt;Please look as I need to get this fixed.&lt;/p&gt;&lt;p&gt;thanks&lt;br&gt;&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;thanks&lt;br&gt;&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;</description></item><item><title>SaveLayour and CheckedRows array</title><link>http://www.intersoftsolutions.com/Community/WebGrid/SaveLayour-and-CheckedRows-array/</link><pubDate>Mon, 01 Jun 2015 15:49:23 GMT</pubDate><dc:creator>John.Bonin@dot.gov</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I am using the SaveLayout functionality to allow user to save the current grid's layout. In most cases it works fine. I do have one problem. &lt;br&gt;&lt;/p&gt;&lt;p&gt;The grid uses a RowChecker column that allows the user to select multiple rows and then do something to all checked rows. It creates an ArrayList of the CheckedRows using: &lt;br&gt;&lt;/p&gt;&lt;p&gt;Dim checkedRows As ArrayList = WebGrid1.RootTable.GetCheckedRows()&lt;/p&gt;&lt;p&gt;If the layout is not saved, the array list (checkedRows) contains a list of all the DataKeyField values for each row (The DataKeyField is set in the RootTable tag). If I save the layout and select a few rows, using the RowChecker column, the array list will contain a list of empty strings. For example if I select 2 rows, the array list will have a count of 2, but the values are empty.&lt;/p&gt;&lt;p&gt;So using the code below, keyValue is an empty string, so gettting the value of a column in the select row returns an error, since keyValue is empty. Again this only fails if I have save/restore the layout.&amp;nbsp; &lt;br&gt;&lt;/p&gt;&lt;p&gt;For Each keyValue As String In checkedRows&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; xname = WebGrid1.RootTable.GetUngrouppedRows().GetRowByKeyValue(keyValue).Cells.GetNamedItem("xName").Text&lt;br&gt;Next&lt;/p&gt;&lt;p&gt;I've attached the SaveLayout XML files that are created if they help.&lt;/p&gt;&lt;p&gt;Any ideas?&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;</description></item></channel></rss>