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

How to add Filter Button

3 Answers 195 Views
Grid
This is a migrated thread and some comments may be shown as answers.
i
Top achievements
Rank 1
i asked on 23 Apr 2015, 03:13 PM

Hi Team,

   I'm using Telerik.Web.UI 2010.3.1317.20 on my web page. I would like to add two date picker on grid filter. I can add with below code. I don't see filter menu beside the date picker after i added. I saw Filter Menu if i does not use "Filter Template". How may i archive get my gold.

 

Best Regards,

Here is my code snap.

<telerik:GridBoundColumn DataField="Order_Date" DataType="System.DateTime" FilterControlAltText="Filter Order_Date column"
                            HeaderText="Order Date" SortExpression="Order_Date" UniqueName="Order_Date" DataFormatString="{0:dd-MMM-yyyy}"
                            HeaderStyle-HorizontalAlign="center" ItemStyle-HorizontalAlign="center" AllowFiltering="true">
                            <HeaderStyle HorizontalAlign="Center" />
                            <ItemStyle HorizontalAlign="Center" />
                            <FilterTemplate>
                                From:
                                <telerik:RadDatePicker ID="dtpOrdDateFrom" runat="server" Width="140px" MinDate="01-01-1753" />
                                To:
                                <telerik:RadDatePicker ID="dtpOrdDateTo" runat="server" Width="140px" MinDate="01-01-1753" />
                            </FilterTemplate>
                        </telerik:GridBoundColumn>

3 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 28 Apr 2015, 11:10 AM
Hi,

Instead of building new Template configuration, you can conveniently use the following property provided by RadGrid:
<telerik:GridDateTimeColumn ... EnableRangeFiltering="true">

You can check the following forum thread for accessing the generated filter controls programmatically:
https://admin.telerik.com/www.telerik.com/forums/basic-filtering-datetime-range

Hope this helps.

Regards,
Eyup
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
i
Top achievements
Rank 1
answered on 29 Apr 2015, 05:15 AM

Hi Eyup,

 

       Thanks you for your kindly reply. I can't reach site as you gave the link(404). I don't see any properties in grid as your mention to me. I'm using Telerik.Web.UI 2010.3.1317.20 version. Does that properties is include in this version?

 

Regards,

iBeans

0
Eyup
Telerik team
answered on 01 May 2015, 04:47 AM
Hi,

I think this property was introduced in 2012 and you should a newer version in order to make avail out of it. Generally, we highly suggest that you should use the latest release version of the controls, which include many new improvements and functionalities.

Regards,
Eyup
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
Grid
Asked by
i
Top achievements
Rank 1
Answers by
Eyup
Telerik team
i
Top achievements
Rank 1
Share this question
or