Adding filter fields programmatically

2 posts, 0 answers
  1. Chris
    Chris avatar
    15 posts
    Member since:
    Oct 2010

    Posted 05 Aug 2011 Link to this post

    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");
    However, when I execute, the field is not visible on the field list. What I am missing?
  2. Andrey
    Andrey avatar
    836 posts

    Posted 08 Aug 2011 Link to this post

    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.

    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.

Back to Top