﻿<?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 - set filters on ServerSide</title><link>http://www.intersoftsolutions.com/Community/WebGrid/set-filters-on-ServerSide/</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>set filters on ServerSide</title><link>http://www.intersoftsolutions.com/Community/WebGrid/set-filters-on-ServerSide/</link><pubDate>Mon, 02 Nov 2009 05:11:02 GMT</pubDate><dc:creator>Glayaar</dc:creator><category>WebGrid</category><description>&lt;p /&gt;&lt;p&gt;Attached is a sample to replicate the scenario you are facing. &lt;/p&gt;
&lt;p&gt;If you are using SendCustomRequest to invoke the method, you could use the PrepareDataBinding event to apply the filter and refresh the grid in the InitializePostBack server side event. &lt;/p&gt;
&lt;p /&gt;</description></item><item><title>set filters on ServerSide</title><link>http://www.intersoftsolutions.com/Community/WebGrid/set-filters-on-ServerSide/</link><pubDate>Wed, 07 Oct 2009 02:51:18 GMT</pubDate><dc:creator>vangeloni</dc:creator><category>WebGrid</category><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I can not use the OnPrepareDataBinding because I need to apply the filter on particular event on client side and I using the sendCustomerData in order to invoke the method on server side.&lt;/p&gt;
&lt;p&gt;I need to know how to run UpdateUI (client side method) on server side.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Vincenzo&lt;br /&gt;&lt;/p&gt;</description></item><item><title>set filters on ServerSide</title><link>http://www.intersoftsolutions.com/Community/WebGrid/set-filters-on-ServerSide/</link><pubDate>Tue, 06 Oct 2009 23:33:14 GMT</pubDate><dc:creator>Dicky</dc:creator><category>WebGrid</category><description>&lt;p&gt;Hi Vince,&lt;/p&gt;&lt;p&gt;You can add filter column on server side using onPrepareDataBinding event. Here the code snippet:&lt;/p&gt;&lt;span style="font-size: 10pt; font-family: 'courier new'; "&gt;&lt;span style=""&gt;
&lt;p class="MsoNormal" style="margin-top: 0in; margin-right: 0in; margin-bottom: 0pt; margin-left: 0in; line-height: normal; "&gt;&lt;span style="font-size: 10pt; color: blue; font-family: 'courier new'; "&gt;if&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: 'courier new'; "&gt; (!IsPostBack) &lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin-top: 0in; margin-right: 0in; margin-bottom: 0pt; margin-left: 0in; line-height: normal; "&gt;&lt;span style="font-size: 10pt; font-family: 'courier new'; "&gt;{ &lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin-top: 0in; margin-right: 0in; margin-bottom: 0pt; margin-left: 0in; text-indent: 0.5in; line-height: normal; "&gt;&lt;span style="font-size: 10pt; color: rgb(43, 145, 175); font-family: 'courier new'; "&gt;WebGridFilter&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: 'courier new'; "&gt; filter1 = &lt;span style="color: blue; "&gt;new&lt;/span&gt; &lt;span style="color: rgb(43, 145, 175); "&gt;WebGridFilter&lt;/span&gt;(&lt;span style="color: rgb(163, 21, 21); "&gt;"City"&lt;/span&gt;, &lt;span style="color: rgb(43, 145, 175); "&gt;ColumnFilterType&lt;/span&gt;.Contain, &lt;span style="color: rgb(163, 21, 21); "&gt;"London"&lt;/span&gt;); &lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin-top: 0in; margin-right: 0in; margin-bottom: 0pt; margin-left: 0in; text-indent: 0.5in; line-height: normal; "&gt;&lt;span style="font-size: 10pt; font-family: 'courier new'; "&gt;WebGrid1.RootTable.FilteredColumns.Add(filter1); &lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin-top: 0in; margin-right: 0in; margin-bottom: 10pt; margin-left: 0in; line-height: 150%; "&gt;&lt;span style="font-size: 10pt; line-height: 150%; font-family: 'courier new'; "&gt;}&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin-top: 0in; margin-right: 0in; margin-bottom: 10pt; margin-left: 0in; line-height: 150%; "&gt;&lt;span style="font-size: 10pt; line-height: 150%; font-family: 'courier new'; "&gt;&lt;span style="font-family: 'lucida sans unicode'; line-height: normal; "&gt;Hope this helps.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;
&lt;p class="MsoNormal" style="margin-top: 0in; margin-right: 0in; margin-bottom: 10pt; margin-left: 0in; line-height: 150%; "&gt;Dicky&lt;/p&gt;</description></item><item><title>set filters on ServerSide</title><link>http://www.intersoftsolutions.com/Community/WebGrid/set-filters-on-ServerSide/</link><pubDate>Tue, 06 Oct 2009 11:16:03 GMT</pubDate><dc:creator>vangeloni</dc:creator><category>WebGrid</category><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;on client side I have used the following code to set filters programmaticaly, it works fine.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;var newFilter = new WebGridFilter(); // create new Filter configuration&lt;br /&gt; newFilter.ColumnMember = "ProductNumber";&lt;br /&gt; newFilter.FilterType = "EqualTo";&lt;br /&gt; newFilter.FilterText = rowObj.GetCell('productid').Text;&lt;br /&gt;&lt;br /&gt; grid2.RootTable.FilteredColumns.Add(newFilter);&lt;br /&gt; grid2.RootTable.UpdateUI();&lt;br /&gt; grid2.Refresh(); // apply changes&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Now I need to perfom the same on serverSide, in this case I do not know perform the following Instrunction grid2.RootTable.UpdateUI(); on server side.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Vince&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>