﻿<?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 - Filter column does a Refreshing instead of Filtering...</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Filter-column-does-a-Refreshing-instead-of-Filtering/</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>Filter column does a Refreshing instead of Filtering...</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Filter-column-does-a-Refreshing-instead-of-Filtering/</link><pubDate>Fri, 13 Nov 2009 02:38:04 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Yes, You will need Refresh if you set from client side programmatically. Our WebGrid sample&amp;gt;&amp;gt;Client_programmaticUI.aspx also shows the same method. When refresh, it will populate the data again. That's why it can be felt slower.&lt;/p&gt;&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>Filter column does a Refreshing instead of Filtering...</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Filter-column-does-a-Refreshing-instead-of-Filtering/</link><pubDate>Thu, 12 Nov 2009 12:27:35 GMT</pubDate><dc:creator>p.belanger@cgi.com</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I created a function to apply a filter on a grid based on the value in a TextBox. (AddFilter)&lt;/p&gt;
&lt;p&gt;However when the function is called it does a "Refreshing data..." &lt;/p&gt;
&lt;p&gt;If I use the Filtering directly in the WebGrid, the status line shows: "Filtering column..."&lt;/p&gt;
&lt;p&gt;The final result is the same but the Refreshing is much slower!!&lt;/p&gt;
&lt;p&gt;Is there a method which would do a filter instead of a refresh? &lt;/p&gt;
&lt;p&gt;For example: grid.Filter() to replace grid.Refresh()&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;&lt;span style="font-size: 13px"&gt;&lt;/span&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;function&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; AddFilter() &lt;p&gt;{&lt;/p&gt;&lt;/span&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;var&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; grid = ISGetObject(&lt;/span&gt;&lt;span style="font-size: 13px; color: #a31515"&gt;&lt;span style="font-size: 13px; color: #a31515"&gt;"dgMEL"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;); &lt;/span&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;var&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; newFilter = &lt;/span&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;new&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; WebGridFilter(); &lt;/span&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;var&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; obj = document.getElementById(&lt;/span&gt;&lt;span style="font-size: 13px; color: #a31515"&gt;&lt;span style="font-size: 13px; color: #a31515"&gt;"TextBox1"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;); newFilter.ColumnMember = &lt;/span&gt;&lt;span style="font-size: 13px; color: #a31515"&gt;&lt;span style="font-size: 13px; color: #a31515"&gt;"MEOwner"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;; &lt;p&gt;newFilter.FilterType = &lt;span style="font-size: 13px; color: #a31515"&gt;&lt;span style="font-size: 13px; color: #a31515"&gt;"Contain"&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;span style="font-size: 13px; color: #a31515"&gt;&lt;span style="font-size: 13px; color: #a31515"&gt;"Contain"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;&lt;p&gt;newFilter.FilterText = obj.value;&lt;/p&gt;&lt;/span&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;if&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; (grid.RootTable.GetRow(0) != &lt;/span&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;null&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;) &lt;p&gt;{&lt;/p&gt;&lt;p&gt;grid.RootTable.FilteredColumns.Add(newFilter); &lt;/p&gt;&lt;p&gt;grid.RootTable.UpdateUI();&lt;/p&gt;&lt;p&gt;grid.Refresh(); &lt;/p&gt;&lt;p&gt;} &lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;/span&gt;</description></item></channel></rss>