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

[Solved] Customize filter

1 Answer 108 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rahul
Top achievements
Rank 1
Rahul asked on 03 Aug 2009, 05:22 AM
Hello Sir

In my Radgrid one column contains date , i want to filter out the data yearly means if i enter the year 2008 then it will automatically search the record of year 2008.

and IInd is
In my Radgrid one column contains Cost , it contains the amount 3000.00 format ,, if i enter the value text format then it will give the error .. Is it possible to validate to users enters only Number format data .....


How to achieve this above two functionality ??


How to customize the Date  ? How to seach data yearly ?


Its urgent.....................................

Thanks
Regard
Rahul

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 06 Aug 2009, 06:19 AM
Hi rahul,

For the data column, you can filter on Contains option, and entering the year. Additionally, with respect to the numeric value. The default filtering for the control does not offer any validation capabilities. However, you can nest a numeric textbox in the filter template, which would automatically disallow non numeric input. Additional information on this option in available in the following article:

http://demos.telerik.com/aspnet-ajax/grid/examples/programming/filtertemplate/defaultcs.aspx

I hope this information helps.

All the best,
Yavor
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
Rahul
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or