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

Radgrid Filter search Date by month name or number in filter text

3 Answers 123 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Vishal
Top achievements
Rank 1
Vishal asked on 10 Oct 2013, 08:20 AM
Hello all,

I have a request to allow the user to search the Grid Date Column  by just entering the Month Name or Number from the Date part, and search the results.

I had tried some code for Custom filters..but I did not get the desired result.

Please find the screen shot for the above scenario.

Any suggestions are welcome.

Thank You

3 Answers, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 15 Oct 2013, 06:37 AM
Hi Vishal,

To achieve the desired functionality you can try using the filter template where you can put textbox control and manually construct needed filter expression. On the following link you can find online example of RadGrid with different filter templates:
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/filtertemplate/defaultcs.aspx
Please give it try and let me know if you experience any problems.

Looking forward for your reply.

Regards,
Radoslav
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Vishal
Top achievements
Rank 1
answered on 16 Oct 2013, 01:47 PM
Hi radoslav,
Thanks for your reply.

I tried to work out with some of the examples given in that link but could not work out any solution for this issue yet.. :(
A bit more clarification on the implementation side will be great  .


Thanks ,
Vishal
0
Radoslav
Telerik team
answered on 21 Oct 2013, 08:35 AM
Hi Vishal,

I am sending you a simple example which demonstrates the desired functionality. The example uses string representation of the date time object in order to filter appropriately.
The other approach will be to add additional hidden column into the RadGrid which contains the corresponding date objects month’s numbers and to filter by it. In this case you do not need to use string representation of the date time objects into the original column.

I hope this helps.

Regards,
Radoslav
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
General Discussions
Asked by
Vishal
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
Vishal
Top achievements
Rank 1
Share this question
or