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

Adding filter fields programmatically

1 Answer 60 Views
Filter
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 05 Aug 2011, 08:48 PM
I'm trying to add fields to a RadFilter component, and I'm using this code:

	Telerik.Web.UI.RadFilterNumericFieldEditor testNum = new Telerik.Web.UI.RadFilterNumericFieldEditor();
        testNum.FieldName = "OrderID";
        testNum.DataType = Type.GetType("System.Int32");
 
        RadFilterQueryFilter.FieldEditors.Add(testNum);

However, when I execute, the field is not visible on the field list. What I am missing?

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 08 Aug 2011, 12:10 PM
Hi Chris,

Thank you for using our support.

Depending in which event (Page_Load or Page_Init) you add fields to RadFilter, there are some rules you have to follow. More about, you could read in our online documentation.

If you need assistance or if you have more questions, do not hesitate to contact us.

Regards,
Andrey
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Filter
Asked by
Chris
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or