﻿<?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 - Restoring the filter list</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Restoring-the-filter-list/</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>Restoring the filter list</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Restoring-the-filter-list/</link><pubDate>Thu, 11 Nov 2010 09:38:08 GMT</pubDate><dc:creator>JohnnyBravo</dc:creator><description>&lt;p&gt;Nevermind, I didn't include the code that set the FilterType values.&lt;/p&gt;
&lt;p&gt;The issues was on my FilterTypes, I was using the value LIKE or LESSTHAN (all uppercase). Changing it to use mixed case Like or LessThan fixed the issue.&lt;/p&gt;</description></item><item><title>Restoring the filter list</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Restoring-the-filter-list/</link><pubDate>Wed, 10 Nov 2010 22:48:17 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;I made a simple sample based on the information from your previous post in order to reproduce the issue in my local test, but my efforts was not successful – everything worked smoothly and no script error exception happen when attempt to click on the filter icon on the filter row.&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 sample was made using WebGrid 7.0 build 405 and WebUI.NET Framework 3.0 build 756; and viewed in IE 8 browser. For more detail information about the sample, please check the attached sample file on this post.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;You may make any necessary changes to my sample file so that it reproduce the issue and please let us hear your response.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Restoring the filter list</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Restoring-the-filter-list/</link><pubDate>Wed, 10 Nov 2010 15:35:10 GMT</pubDate><dc:creator>JohnnyBravo</dc:creator><description>&lt;p&gt;I have a grid and I execute the following code when the document is loaded in JavaScript. This code sets filters passed in from another web page.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;var grid = ISGetObject("grdInvoiceLink");&lt;br /&gt;var newFilter; &lt;/p&gt;
&lt;p&gt;var oMyObject = window.dialogArguments;&lt;/p&gt;
&lt;p&gt;if (oMyObject.vendor != "") {&lt;br /&gt;    newFilter = new WebGridFilter()&lt;br /&gt;    newFilter.ColumnMember = "vendor"&lt;br /&gt;    newFilter.FilterType = oMyObject.vendorFilterType;&lt;br /&gt;    newFilter.FilterText = oMyObject.vendor&lt;br /&gt;    grid.RootTable.FilteredColumns.Add(newFilter);&lt;br /&gt;    grid.RootTable.UpdateUI();&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;if (oMyObject.accountNumber != "") {&lt;br /&gt;    newFilter = new WebGridFilter()&lt;br /&gt;    newFilter.ColumnMember = "account_nbr"&lt;br /&gt;    newFilter.FilterType = oMyObject.accountNumberFilterType;&lt;br /&gt;    newFilter.FilterText = oMyObject.accountNumber&lt;br /&gt;    grid.RootTable.FilteredColumns.Add(newFilter);&lt;br /&gt;    grid.RootTable.UpdateUI();&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;if (oMyObject.btn != "") {&lt;br /&gt;    newFilter = new WebGridFilter()&lt;br /&gt;    newFilter.ColumnMember = "btn"&lt;br /&gt;    newFilter.FilterType = oMyObject.btnFilterType;&lt;br /&gt;    newFilter.FilterText = oMyObject.btn&lt;br /&gt;    grid.RootTable.FilteredColumns.Add(newFilter);&lt;br /&gt;    grid.RootTable.UpdateUI();&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;if (oMyObject.invoicedate != "") {&lt;br /&gt;    newFilter = new WebGridFilter()&lt;br /&gt;    newFilter.ColumnMember = "invoice_date"&lt;br /&gt;    newFilter.FilterType = oMyObject.invoicedateFilterType;&lt;br /&gt;    newFilter.FilterText = oMyObject.invoicedate&lt;br /&gt;    grid.RootTable.FilteredColumns.Add(newFilter);&lt;br /&gt;    grid.RootTable.UpdateUI();&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;grid.Refresh();&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;This code works. The problem is that if you attempt to click on the filter icon on the filter row, you get a script error exception saying something to the effect of:&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;'undefined' is null or not an object&lt;/p&gt;
&lt;p&gt; The URL listed is &lt;a href="http://localhost/AnchorPoint/ISRes.axd?G/WebGrid_Context.js/707200403"&gt;http://localhost/AnchorPoint/ISRes.axd?G/WebGrid_Context.js/707200403&lt;/a&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;If I click on any of the other non-filtered columns, I get the standard list of filtering options. I just want to filter the grid but still keep the filtering options for each column if the user needs to change them...&lt;/p&gt;</description></item></channel></rss>