﻿<?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 - WebGridFilterRow</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGridFilterRow/</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>WebGridFilterRow</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGridFilterRow/</link><pubDate>Wed, 16 Dec 2009 22:03:09 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Unfortunately, currently there is no way to hide filter icon from server side code. The only available option for this time is by accessing the image element and hides it. You can run the script from server side by invoking “InvokeScript” method.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;I have forwarded this to WebGrid development team as feature request. They will check the feasibility to implement this feature in the upcoming build of WebGrid 7.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>WebGridFilterRow</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGridFilterRow/</link><pubDate>Wed, 16 Dec 2009 12:22:30 GMT</pubDate><dc:creator>gkfahnbulleh@lakepiso.com</dc:creator><description>&lt;p&gt;Thanks for the reply; however, I would like to hide it on server side.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>WebGridFilterRow</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGridFilterRow/</link><pubDate>Mon, 07 Dec 2009 01:53:39 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;To set default filter type, for example to “like”, &lt;span style="mso-spacerun: yes"&gt;&lt;/span&gt;on a specific column please try to specify filtered columns in the RootTable of WebGrid. The snippet code below shows how to set default filter type to “like” on “CompanyName” column.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&amp;lt;ISWebGrid:WebGrid ID="WebGrid1" runat="server" DataSourceID="AccessDataSource1"
    Height="250px" UseDefaultStyle="True" Width="500px"&amp;gt;
    &amp;lt;LayoutSettings AllowFilter="Yes"&amp;gt;
    &amp;lt;/LayoutSettings&amp;gt;
    &amp;lt;RootTable DataKeyField="SupplierID"&amp;gt;
        &amp;lt;Columns&amp;gt;
            &amp;lt;ISWebGrid:WebGridColumn Caption="SupplierID" DataMember="SupplierID" DataType="System.Int32"
                Name="SupplierID" Width="100px"&amp;gt;
            &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
            &amp;lt;ISWebGrid:WebGridColumn Caption="CompanyName" DataMember="CompanyName" Name="CompanyName"
                Width="100px"&amp;gt;
            &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
            &amp;lt;ISWebGrid:WebGridColumn Caption="ContactName" DataMember="ContactName" Name="ContactName"
                Width="100px"&amp;gt;
            &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
            &amp;lt;ISWebGrid:WebGridColumn Caption="ContactTitle" DataMember="ContactTitle" Name="ContactTitle"
                Width="100px"&amp;gt;
            &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
        &amp;lt;/Columns&amp;gt;
        &lt;span style="color: #c00000"&gt;&amp;lt;FilteredColumns&amp;gt;
            &amp;lt;ISWebGrid:WebGridFilter ColumnMember="CompanyName" FilterType="NotLike" /&amp;gt;
        &amp;lt;/FilteredColumns&amp;gt;
&lt;/span&gt;    &amp;lt;/RootTable&amp;gt;
&amp;lt;/ISWebGrid:WebGrid&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;In order to remove the filter icons from the columns, you need to access the image element of the filter icon and then set its display property to “none”. The snippet of script below shows how to remove filter icon from cell with index number&amp;nbsp; 5 in WebGrid filter row.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;function WebGrid1_OnInitialize(controlId) {
    var WebGrid1 = ISGetObject(controlId);
    var FilterRow = WebGrid1.RootTable.GetFilterRow();

    &lt;span style="color: #c00000"&gt;FilterRow.cells[5].childNodes[1].style.display = "none";
&lt;/span&gt;
    return true;
}&lt;/pre&gt;</description></item><item><title>WebGridFilterRow</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGridFilterRow/</link><pubDate>Sun, 06 Dec 2009 11:58:48 GMT</pubDate><dc:creator>gkfahnbulleh@lakepiso.com</dc:creator><description>&lt;p&gt;How do I set the default filter for a column to "like"?&lt;/p&gt;
&lt;p&gt;How do I remove the filter icons from the columns?&lt;/p&gt;</description></item></channel></rss>