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

[Solved] Adding a new value to the GridKnownFunction enum

1 Answer 141 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Phani Musale
Top achievements
Rank 1
Phani Musale asked on 08 Feb 2010, 11:56 AM
Hi,

I am using RadGrid column filter option. I am trying to add a new Filter menu. I have aded the same using the

RadMenuItem

 

class and it's shoing up in the Menu options. however when I select this newly added option I get the following javascript error: "Error: Sys.ArgumentException: 'FromTo' is not a valid value for enum Telerik.Web.UI.GridFilterFunction.
Parameter name: value".

can anyone tell me how to add this new filtermenu option to the GridKnownFunction enum or any other work around?

Thanks

1 Answer, 1 is accepted

Sort by
0
Accepted
Yavor
Telerik team
answered on 11 Feb 2010, 07:41 AM
Hi Phani,

The best option in this case would be to use a filter template. This is demonstrated in the following example:

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

I hope this gets you started properly.

Kind regards,
Yavor
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
Tags
Grid
Asked by
Phani Musale
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or