﻿<?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 - Filtering in WebValueList column</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Filtering-in-WebValueList-column/</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>Filtering in WebValueList column</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Filtering-in-WebValueList-column/</link><pubDate>Mon, 02 Nov 2009 23:01:40 GMT</pubDate><dc:creator>Glayaar</dc:creator><category>Filter</category><description>&lt;p&gt;In our environment the sample return no row and there is no such error as you described. Could you inform us the WebGrid build and WebUI Framework you are using in order to analyze this issue further.&lt;/p&gt;</description></item><item><title>Filtering in WebValueList column</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Filtering-in-WebValueList-column/</link><pubDate>Tue, 13 Oct 2009 01:53:18 GMT</pubDate><dc:creator>Michael</dc:creator><category>Filter</category><description>&lt;p&gt;Hi Glenn&lt;/p&gt;
&lt;p&gt;I have still problem with AutoFilterSuggestion. Following code is from sample &lt;strong&gt;&lt;em&gt;AutomaticFilterSuggestion.aspx&lt;/em&gt;&lt;/strong&gt;. I have added property DataFormatString="dd.MM.yyyy HH:mm:ss" on columns BirthDate and HireDate. Please check this. I get Errormessages like attached pictures.&lt;/p&gt;&lt;pre&gt;    &amp;lt;ISWebGrid:WebGrid ID="WebGrid1" runat="server" Height="300px" UseDefaultStyle="True"
        Width="100%" DataSourceID="AccessDataSource1"&amp;gt;
        &amp;lt;RootTable DataKeyField="EmployeeID"&amp;gt;
            &amp;lt;Columns&amp;gt;
                &amp;lt;ISWebGrid:WebGridColumn Caption="LastName" DataMember="LastName" Name="LastName"
                    Width="100px"&amp;gt;
                &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                &amp;lt;ISWebGrid:WebGridColumn Caption="FirstName" DataMember="FirstName" Name="FirstName"
                    Width="100px"&amp;gt;
                &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                &amp;lt;ISWebGrid:WebGridColumn Caption="Title" DataMember="Title" Name="Title" Width="100px"&amp;gt;
                &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                &amp;lt;ISWebGrid:WebGridColumn Caption="TitleOfCourtesy" DataMember="TitleOfCourtesy" Name="TitleOfCourtesy"
                    Width="100px"&amp;gt;
                &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                &amp;lt;ISWebGrid:WebGridColumn Caption="BirthDate" DataMember="BirthDate" DataType="System.DateTime"
                    Name="BirthDate" Width="200px" DataFormatString="dd.MM.yyyy HH:mm:ss"&amp;gt;
                &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                &amp;lt;ISWebGrid:WebGridColumn Caption="HireDate" DataMember="HireDate" DataType="System.DateTime"
                    Name="HireDate" Width="200px" DataFormatString="dd.MM.yyyy HH:mm:ss"&amp;gt;
                &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
            &amp;lt;/Columns&amp;gt;
        &amp;lt;/RootTable&amp;gt;
        &amp;lt;LayoutSettings AutoFilterSuggestion="True"&amp;gt;
        &amp;lt;/LayoutSettings&amp;gt;
    &amp;lt;/ISWebGrid:WebGrid&amp;gt;&lt;/pre&gt;

&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>Filtering in WebValueList column</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Filtering-in-WebValueList-column/</link><pubDate>Thu, 08 Oct 2009 03:54:53 GMT</pubDate><dc:creator>Glayaar</dc:creator><category>Filter</category><description>&lt;p&gt;You use sort the item alphabethically on EditType dropdownlist column if you are using WebValueList, just set the property UseValueListForSorting to true to sort it by tthe text value.&lt;/p&gt;&lt;p&gt;AutoFilterSuggestion will work with any dateformat if the column
datatype is DateTime and the formatting is done using DataFormatString
property of the WebGridColumn. For example here is the snippet to
format column RequiredDate to displayed as "dd.MM.yyyy hh:mm:ss":&lt;/p&gt;&lt;pre&gt;&amp;lt;ISWebGrid:WebGridColumn Caption="RequiredDate" DataMember="RequiredDate" DataType="System.DateTime"&lt;br /&gt;    EditType="CalendarCombo" Name="RequiredDate" Width="100px" DataFormatString="dd.MM.yyyy hh:mm:ss"&amp;gt;&lt;br /&gt;&amp;lt;/ISWebGrid:WebGridColumn&amp;gt;&lt;/pre&gt;
&lt;p&gt;Please execute the columnset creation code once. In the sample you
attached, the columnset will be created each time PrepareDataBinding is
triggered, if you only execute the code once (while page is not
PostBack) the page will display without any issue.&lt;/p&gt;
&lt;p&gt;You could try using AdvancedFilterExpression by disabling
AutomaticFilter in the RootTable and handling the WebGrid filtering
yourself in order to achieve filtering more than one item. Attached is a
similar sample of filtering more than one City or Country &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Filtering in WebValueList column</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Filtering-in-WebValueList-column/</link><pubDate>Tue, 06 Oct 2009 05:26:26 GMT</pubDate><dc:creator>Michael</dc:creator><category>Filter</category><description>&lt;p&gt;Hi Glenn&lt;/p&gt;
&lt;p&gt;Thank you for advise.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;It's possible to sort Items alphabetically if I &lt;strong&gt;use Dropdownlist&lt;/strong&gt;?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I use following Dateformat "dd.MM.yyyy hh:mm:ss". AutoFilterSuggestion for Date (e.g. Today, Yesterday, ... -&amp;gt; in Contextmenu) doesn't work. I have set LanguageMode to UseCulture:&lt;/p&gt;&lt;pre&gt;            e.Layout.TextSettings.Language = LanguageMode.UseCulture;
            e.Layout.TextSettings.UseWebResources = false;
            e.Layout.TextSettings.LocalizationFolder = @"~/Localization/";&lt;/pre&gt;

&lt;div id="result_box" dir="ltr"&gt; &lt;/div&gt;
&lt;div dir="ltr"&gt; &lt;/div&gt;
&lt;div dir="ltr"&gt;If I create Columnset programmatically the row on the right side overlaps when a filter is active (see FilterOverlapColumnset.jpg). But this is only visible when there is no scroll bar is present. I have also attached a sample with Northwind Database. You should reproduce the scenario with following steps:&lt;/div&gt;
&lt;ol dir="ltr"&gt;&lt;li&gt;
&lt;div&gt;Change ConnectionString and run sample&lt;/div&gt;&lt;/li&gt;&lt;li&gt;
&lt;div&gt;Type Filtertext "Maria" in ContactName Column&lt;/div&gt;&lt;/li&gt;&lt;li&gt;
&lt;div&gt;Apply all Filters&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;WebCombo with ValueList has following Items:&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;ProductA added&lt;/li&gt;&lt;li&gt;ProductA deleted&lt;/li&gt;&lt;li&gt;ProductA modifided&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;Now I want to filter by &lt;em&gt;ProductA&lt;/em&gt;. &lt;/p&gt;
&lt;p&gt;Is there a way to choose more then one Item (like sample Multiple Values in WebValueList) or set Filtertext to e.g. ProductA&lt;span style="background-color: #ffff00"&gt;*&lt;/span&gt;&lt;font&gt;?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Michael&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>Filtering in WebValueList column</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Filtering-in-WebValueList-column/</link><pubDate>Mon, 05 Oct 2009 05:27:34 GMT</pubDate><dc:creator>Glayaar</dc:creator><category>Filter</category><description>&lt;p&gt;Our common scenario for WebValueList column is using WebCombo edit type. For example, our EditorTypes.aspx page in WebGrid sample which WebValueList in SupplierID and CategoryID column. Please enable filtering by setting the AllowFilter property to true.&lt;/p&gt;&lt;p&gt;We could also use CustomFiltering which already explained in the WebGrid Documentaion under the article "CustomFilter Event". However, using this approach you will need to have the DataText WebValueList as a hidden column.  &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Filtering in WebValueList column</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Filtering-in-WebValueList-column/</link><pubDate>Mon, 05 Oct 2009 02:57:13 GMT</pubDate><dc:creator>Michael</dc:creator><category>Filter</category><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;div id="result_box" dir="ltr"&gt;I can not find any records when I type filtertext in WebValueList column.&lt;/div&gt;
&lt;div dir="ltr"&gt;It's possible to filtering WebValueList columns?&lt;/div&gt;
&lt;div dir="ltr"&gt; &lt;/div&gt;
&lt;div dir="ltr"&gt;Best regards&lt;/div&gt;
&lt;div dir="ltr"&gt;Michael&lt;/div&gt;</description></item></channel></rss>