﻿<?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 - Custom Filter issue</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Custom-Filter-issue/</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>Custom Filter issue</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Custom-Filter-issue/</link><pubDate>Thu, 09 Dec 2010 11:49:08 GMT</pubDate><dc:creator>qq397472251</dc:creator><category>WebGrid</category><category>Filter</category><category>issue</category><category>custom</category><description>&lt;p&gt;I t is a pity to hear that,but thank you  all the same!&lt;/p&gt;</description></item><item><title>Custom Filter issue</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Custom-Filter-issue/</link><pubDate>Wed, 08 Dec 2010 02:06:58 GMT</pubDate><dc:creator>niven</dc:creator><category>WebGrid</category><category>Filter</category><category>issue</category><category>custom</category><description>&lt;p&gt;Hi Frank,&lt;/p&gt;
&lt;p&gt;Unfortunately, the sample you had given to me can't be achieve on client-side and also the given sample using the ISDataSource FilterExpression property to deal with specific scenario automatically and actually an SQL statement. &lt;/p&gt;
&lt;p&gt;But the custom filter still need to be set up on server-side.&lt;/p&gt;
&lt;p&gt;Thank you and have a nice day.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Niven.&lt;/p&gt;</description></item><item><title>Custom Filter issue</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Custom-Filter-issue/</link><pubDate>Mon, 06 Dec 2010 21:00:20 GMT</pubDate><dc:creator>qq397472251</dc:creator><category>WebGrid</category><category>Filter</category><category>issue</category><category>custom</category><description>&lt;p&gt;I am sorry,I want to achieve the function  such as &lt;strong&gt;ISDataSource &amp;gt;General&amp;gt;UsingFilterParameters.aspx&lt;br /&gt;&lt;/strong&gt;But when I click the button ,it will refresh the all page,using updatepannel can solve(It will run slowly)&lt;br /&gt;How can I custom filter on client-side????&lt;br /&gt;(when I click button ,it won't refresh the page)&lt;/p&gt;</description></item><item><title>Custom Filter issue</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Custom-Filter-issue/</link><pubDate>Mon, 06 Dec 2010 03:02:31 GMT</pubDate><dc:creator>niven</dc:creator><category>WebGrid</category><category>Filter</category><category>issue</category><category>custom</category><description>&lt;p&gt;Hi Frank,&lt;/p&gt;
&lt;p&gt;For applying custom filter on WebGrid, you can follow our WebGrid's documentation on &lt;strong&gt;Walkthrough: Applying Custom Filtering in WebGrid&lt;/strong&gt;. &lt;span class="Apple-style-span" style="widows: 2; text-transform: none; text-indent: 0px; border-collapse: separate; font: medium 'times new roman'; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(0,0,0); word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"&gt;&lt;span class="Apple-style-span" style="font-family: 'segoe ui', verdana, arial; font-size: 11px"&gt;&lt;span class="apple-style-span" style="widows: 2; text-transform: none; text-indent: 0px; border-collapse: separate; font: medium 'times new roman'; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(0,0,0); word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"&gt;&lt;span class="apple-style-span" style="font-family: 'segoe ui', verdana, arial; font-size: 11px"&gt;&lt;br class="apple-interchange-newline" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Please let me know if this the one you wanted.&lt;/p&gt;
&lt;p&gt;Thank you and have a nice day.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Niven&lt;/p&gt;
&lt;div id="mainBody" style="width: auto; display: block"&gt; &lt;/div&gt;
</description></item><item><title>Custom Filter issue</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Custom-Filter-issue/</link><pubDate>Sun, 05 Dec 2010 20:33:45 GMT</pubDate><dc:creator>qq397472251</dc:creator><category>WebGrid</category><category>Filter</category><category>issue</category><category>custom</category><description>&lt;p&gt;When Ioading the page,I want to apply &lt;strong&gt;The custom Filter&lt;/strong&gt; in the webgrid2,But it does not work.&lt;/p&gt;
&lt;p&gt;(However,the gridview can apply The custom Filter  )&lt;br /&gt;Could you show me a demo about custom Filter ?&lt;br /&gt;Anyone can help me ?thanks&lt;/p&gt;&lt;strong&gt;Code：&lt;br /&gt;&lt;/strong&gt;&lt;pre&gt;&amp;lt;%@ Page Language="C#" AutoEventWireup="true" CodeFile="Pop1.aspx.cs" Inherits="Pop1" %&amp;gt;

&amp;lt;%@ Register Assembly="ISNet.WebUI.WebGrid" Namespace="ISNet.WebUI.WebGrid" TagPrefix="ISWebGrid" %&amp;gt;
&amp;lt;%@ Register Assembly="ISNet.WebUI.WebDesktop" Namespace="ISNet.WebUI.WebDesktop"
    TagPrefix="ISWebDesktop" %&amp;gt;
&amp;lt;%@ Register Assembly="ISNet.WebUI.WebInput" Namespace="ISNet.WebUI.WebControls"
    TagPrefix="ISWebInput" %&amp;gt;
&amp;lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" &amp;gt;
&amp;lt;html&amp;gt;
&amp;lt;head runat="server"&amp;gt;
    &amp;lt;title&amp;gt;Untitled Page&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;form id="form1" runat="server"&amp;gt;
    &amp;lt;table width="375px"&amp;gt;
        &amp;lt;tr&amp;gt;
            &amp;lt;td width="45px"&amp;gt;
                关键字
            &amp;lt;/td&amp;gt;
            &amp;lt;td&amp;gt;
                &amp;lt;ISWebInput:WebInput Width="100px" ID="WebInput1" runat="server"&amp;gt;
                &amp;lt;/ISWebInput:WebInput&amp;gt;
                &amp;lt;asp:TextBox ID="TextBox1" runat="server" Text="大"&amp;gt;&amp;lt;/asp:TextBox&amp;gt;
            &amp;lt;/td&amp;gt;
            &amp;lt;td&amp;gt;
                &amp;lt;ISWebDesktop:WebButton ID="WebButton2" runat="server" Height="20px" Text="查找" Width="50px"
                    AutoPostback="true" PostBackMode="FlyPostBack"&amp;gt;
                &amp;lt;/ISWebDesktop:WebButton&amp;gt;
                &amp;lt;asp:Button ID="Button1" runat="server" OnClick="Button1_Click1" Text="Button" /&amp;gt;
            &amp;lt;/td&amp;gt;
        &amp;lt;/tr&amp;gt;
        &amp;lt;tr&amp;gt;
            &amp;lt;td colspan="3"&amp;gt;
                &amp;lt;ISWebGrid:WebGrid ID="WebGrid2" runat="server" Height="315px" UseDefaultStyle="True"
                    Width="371px" DataSourceID="Sqltb_stock" DefaultStyleMode="Elegant"&amp;gt;
                    &amp;lt;LayoutSettings AlternatingColors="false" AllowContextMenu="False"&amp;gt;
                        &amp;lt;ClientSideEvents OnCellDblClick="DbclickAutoFill()" /&amp;gt;
                        &amp;lt;SelectedRowStyle BackColor="#FFBD69" /&amp;gt;
                    &amp;lt;/LayoutSettings&amp;gt;
                    &amp;lt;RootTable&amp;gt;
                        &amp;lt;Columns&amp;gt;
                            &amp;lt;ISWebGrid:WebGridColumn Caption="tradecode" DataMember="tradecode" Name="tradecode"
                                Width="100px"&amp;gt;
                            &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                            &amp;lt;ISWebGrid:WebGridColumn Caption="fullname" DataMember="fullname" Name="fullname"
                                Width="100px"&amp;gt;
                            &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                            &amp;lt;ISWebGrid:WebGridColumn Caption="unit" DataMember="unit" Name="unit" Width="100px"&amp;gt;
                            &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                            &amp;lt;ISWebGrid:WebGridColumn Caption="qty" DataMember="qty" DataType="System.Double"
                                Name="qty" Width="100px"&amp;gt;
                            &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                            &amp;lt;ISWebGrid:WebGridColumn Caption="averageprice" DataMember="averageprice" DataType="System.Double"
                                Name="averageprice" Width="100px"&amp;gt;
                            &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                        &amp;lt;/Columns&amp;gt;
                    &amp;lt;/RootTable&amp;gt;
                &amp;lt;/ISWebGrid:WebGrid&amp;gt;
                &amp;lt;asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="Sqltb_stock"&amp;gt;
                    &amp;lt;Columns&amp;gt;
                        &amp;lt;asp:BoundField DataField="tradecode" HeaderText="tradecode" SortExpression="tradecode" /&amp;gt;
                        &amp;lt;asp:BoundField DataField="fullname" HeaderText="fullname" SortExpression="fullname" /&amp;gt;
                        &amp;lt;asp:BoundField DataField="unit" HeaderText="unit" SortExpression="unit" /&amp;gt;
                        &amp;lt;asp:BoundField DataField="qty" HeaderText="qty" SortExpression="qty" /&amp;gt;
                        &amp;lt;asp:BoundField DataField="averageprice" HeaderText="averageprice" SortExpression="averageprice" /&amp;gt;
                    &amp;lt;/Columns&amp;gt;
                &amp;lt;/asp:GridView&amp;gt;
            &amp;lt;/td&amp;gt;
        &amp;lt;/tr&amp;gt;
    &amp;lt;/table&amp;gt;
    &amp;lt;asp:SqlDataSource ID="Sqltb_stock" runat="server" FilterExpression="fullname Like '%{0}%'"
        ConnectionString="&amp;lt;%$ ConnectionStrings:db_CMSConnectionString %&amp;gt;" SelectCommand="SELECT [tradecode], [fullname], [unit], [qty], [averageprice] FROM [tb_stock]"&amp;gt;
        &amp;lt;FilterParameters&amp;gt;
            &amp;lt;asp:ControlParameter ControlID="TextBox1" ConvertEmptyStringToNull="False" Name="fullname"
                PropertyName="Text" /&amp;gt;
        &amp;lt;/FilterParameters&amp;gt;
    &amp;lt;/asp:SqlDataSource&amp;gt;
    &amp;lt;/form&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/pre&gt;
</description></item></channel></rss>