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

[Solved] Add custom field editor dynamically in RadFilter?

3 Answers 215 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ann
Top achievements
Rank 1
Ann asked on 01 May 2013, 07:59 PM
I  can "Creat Custom Field Editors" and "Add Field Editors Dynamically" separately in asp.net radFilter
Can we add custom field editor dynamically?  It seems we have to make html tag for custom field editor in aspx page as shown in below:

 <FieldEditors>      
                <Custom:RadFilterRuleTextFieldEditor FieldName="Dimension"  />
                <Custom:RadFilterRuleTextFieldEditor FieldName="Dimension(and children)"  />
               
                 <telerik:RadFilterTextFieldEditor  FieldName="MyText"     TextBoxWidth="333"     />
                 <telerik:RadFilterBooleanFieldEditor  FieldName="MyBoolean" />
 </FieldEditors>

My requirement is I want to add custom field editors dynamically for RadFilter control using c# without html tag. Please advise.
Thanks,

Jim Chen

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 02 May 2013, 04:24 AM
Hi,

Check the following help documentation which explains more about this.
Creating Custom Field Editors

Thanks,
Shinu
0
Prathyusha
Top achievements
Rank 1
answered on 02 May 2013, 11:05 AM
Hi  Shinu I tried above article.
It showing below error. 

 An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Unknown server tag 'custom:RadFilterDropDownEditor'.

Source Error:

Line 14: OnFieldEditorCreating="RadFilter1_FieldEditorCreating"
ExpressionPreviewPosition="Bottom"> Line 15: <FieldEditors>
Line 16: <custom:RadFilterDropDownEditor FieldName="ShipCountry" DataTextField="ShipCountry"
Line 17: DataValueField="ShipCountry" />
Line 18: </FieldEditors>


Plesae give me suggestion to overcome this
0
Angel Petrov
Telerik team
answered on 07 May 2013, 10:27 AM
Hello,

Generally this error occurs when the namespace is not registered correctly. Could you ensure that the namespace is registered? In attachments you can find a sample project which follows the approach described in the help article.

All the best,
Angel Petrov
the Telerik team
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 their blog feed now.
Tags
General Discussions
Asked by
Ann
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Prathyusha
Top achievements
Rank 1
Angel Petrov
Telerik team
Share this question
or