﻿<?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 - How do we "apply all filters" programatically using client side scripting </title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-do-we-apply-all-filters-programatically-using-client-side-scripting/</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>How do we "apply all filters" programatically using client side scripting </title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-do-we-apply-all-filters-programatically-using-client-side-scripting/</link><pubDate>Wed, 09 Dec 2009 06:55:18 GMT</pubDate><dc:creator>julia</dc:creator><description>&lt;p&gt;Hi Madhavan,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I have created a sample based on your scenario. But I can't replicate your issue. The WebGrid just refresh one time.&lt;/p&gt;
&lt;p&gt;Here I attached my sample. I'm using Northwind as the database. And here are the steps that I do to replicate your issue:&lt;/p&gt;
&lt;p&gt;1. Input text (e.g: alfki, anatr), it would filtering the first grid.&lt;/p&gt;
&lt;p&gt;2. Selecting a row of the first WebGrid will refresh the second WebGrid.&lt;/p&gt;
&lt;p&gt;3. Selecting a row of the second WebGrid will refresh the first WebGrid.&lt;/p&gt;
&lt;p&gt;Could you please check my sample and let me know whether you have the same error as yours or not. If not could you please modify my sample so it will get the same error as yours and send it back to me? &lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Julia&lt;/p&gt;</description></item><item><title>How do we "apply all filters" programatically using client side scripting </title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-do-we-apply-all-filters-programatically-using-client-side-scripting/</link><pubDate>Tue, 08 Dec 2009 05:20:43 GMT</pubDate><dc:creator>Skgrid@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi Julia,&lt;/p&gt;
&lt;p&gt;Thanks for your reply. &lt;/p&gt;
&lt;p&gt;My scenario:&lt;/p&gt;
&lt;p&gt;I have two grids in a page where left grid shows the items with counters and right grid shows its content view. when I select an item from right grid left grid also refreshed. If Ii select any item from left grid right grid also get refrehed. The functinality is like outlook inbox.&lt;/p&gt;
&lt;p&gt;I have a text box where i type the text and on onkeypress event,calling the javascript function (when enter key is pressed). I need to filter the grid based on the text which i typed in the text box. Is there any method to filter the grid without refresh?  (if i call refrsh() method both grids are refreshed and filtered data is lost)&lt;/p&gt;
&lt;p&gt;Please see the attachment.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Madhavan&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>How do we "apply all filters" programatically using client side scripting </title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-do-we-apply-all-filters-programatically-using-client-side-scripting/</link><pubDate>Tue, 08 Dec 2009 01:52:34 GMT</pubDate><dc:creator>julia</dc:creator><description>&lt;p&gt;* Double post&lt;/p&gt;</description></item><item><title>How do we "apply all filters" programatically using client side scripting </title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-do-we-apply-all-filters-programatically-using-client-side-scripting/</link><pubDate>Tue, 08 Dec 2009 01:51:26 GMT</pubDate><dc:creator>julia</dc:creator><description>&lt;p&gt;Hi Madhavan,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I have tested your code but I didn't get your twice refresh grid issue. In which event that you trigger the javascript code? Also do you have more detail information abour your scenario?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Julia&lt;/p&gt;</description></item><item><title>How do we "apply all filters" programatically using client side scripting </title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-do-we-apply-all-filters-programatically-using-client-side-scripting/</link><pubDate>Mon, 07 Dec 2009 04:13:32 GMT</pubDate><dc:creator>Skgrid@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I'm using the below code to apply filters programatically using client side scripting.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 15px; font-family: calibri"&gt;&amp;nbsp; var grid = ISGetObject("WebGrid1");&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"&gt;&lt;span style="font-size: 15px; font-family: calibri"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var newFilter = new WebGridFilter();&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"&gt;&lt;span style="font-size: 15px; font-family: calibri"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; newFilter.ColumnMember = "ContactTitle"; &lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"&gt;&lt;span style="font-size: 15px; font-family: calibri"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; newFilter.FilterType = "Like";&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"&gt;&lt;span style="font-size: 15px; font-family: calibri"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; newFilter.FilterText = "Check";&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"&gt;&lt;span style="font-size: 15px; font-family: calibri"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; grid.RootTable.FilteredColumns.Add(newFilter);&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"&gt;&lt;span style="font-size: 15px; font-family: calibri"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; grid.RootTable.UpdateUI();&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"&gt;&lt;span style="font-size: 11pt; font-family: 'calibri','sans-serif'; mso-fareast-font-family: calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: 'times new roman'; mso-ansi-language: en-in; mso-fareast-language: en-in; mso-bidi-language: ar-sa"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; grid.Refresh(); &lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"&gt;&lt;span style="font-size: 11pt; font-family: 'calibri','sans-serif'; mso-fareast-font-family: calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: 'times new roman'; mso-ansi-language: en-in; mso-fareast-language: en-in; mso-bidi-language: ar-sa"&gt;&lt;/span&gt; &lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"&gt;&lt;span style="font-size: 11pt; font-family: 'calibri','sans-serif'; mso-fareast-font-family: calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: 'times new roman'; mso-ansi-language: en-in; mso-fareast-language: en-in; mso-bidi-language: ar-sa"&gt;&lt;/span&gt; &lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"&gt;&lt;span style="font-size: 11pt; font-family: 'calibri','sans-serif'; mso-fareast-font-family: calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: 'times new roman'; mso-ansi-language: en-in; mso-fareast-language: en-in; mso-bidi-language: ar-sa"&gt;Filtering is happening but when&amp;nbsp; grid.Refresh()&amp;nbsp; mathod is called the grid is refreshing once again and the filterd data is lost.&amp;nbsp; How can I&amp;nbsp;filter the grid without refreshing the grid. (Just filter the column)&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"&gt;&lt;span style="font-size: 11pt; font-family: 'calibri','sans-serif'; mso-fareast-font-family: calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: 'times new roman'; mso-ansi-language: en-in; mso-fareast-language: en-in; mso-bidi-language: ar-sa"&gt;&lt;/span&gt; &lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"&gt;&lt;span style="font-size: 11pt; font-family: 'calibri','sans-serif'; mso-fareast-font-family: calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: 'times new roman'; mso-ansi-language: en-in; mso-fareast-language: en-in; mso-bidi-language: ar-sa"&gt;&lt;/span&gt; &lt;/p&gt;</description></item></channel></rss>