This is a migrated thread and some comments may be shown as answers.

[Solved] Custom Filtering

1 Answer 93 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jamie
Top achievements
Rank 1
Jamie asked on 04 Aug 2009, 07:42 PM
I'm using the Q1, 2009 distribution of the RadGrid.  I have a GridTemplateColumn that looks like so:

<radG:GridTemplateColumn UniqueName="Reg" HeaderText="Reg" AutoPostBackOnFilter="True" CurrentFilterFunction="Contains">
    <ItemStyle Width="60px" HorizontalAlign="Right" />
    <HeaderStyle Width="60px" />
    <ItemTemplate>
        <%# Eval("wk1_Regular", "{0:0.00}") %>
        <br />
        <%# Eval("wk2_Regular", "{0:0.00}")%>
    </ItemTemplate>
</radG:GridTemplateColumn>

What I want to occur is that when the user enters, say, 16 in to the filter text box, I want the grid be populated with rows where EITHER wk1_Regular OR wk2_Regular have the value 16.

No matter what I try, I cannot get filtering to work.  When I hit enter in the filter textbox, or click the Contains filter menu item, it initiates a call to the server, and fires the ItemCommand event, but the resultant data is never filtered.  Do you have an example of how this should be properly implemented?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 06 Aug 2009, 11:17 AM
Hi Jamie,

To achieve the desired functionality I suggest you examine the following live demo and see if it works for you.
Filter Templates

Regards,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Jamie
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or