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

Pre-populate expression when it added in filter

3 Answers 75 Views
Filter
This is a migrated thread and some comments may be shown as answers.
Jake
Top achievements
Rank 1
Jake asked on 07 Oct 2010, 04:37 PM
When adding a new expression in RadFilter, for some fields, I would like to pre-populate a default value in the expression. For example, in the attached picture, when adding an OrderID expression, it should programmatically populate the value to "111".

I tried to customize the ItemCommand event, but I don't know how to obtain the associated RadFilterTextFieldEditor and set the default value "111" to it.

Does any one know how to archieve it?

 

3 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 13 Oct 2010, 01:52 PM
Hello Jake,

I attached a simple project that demonstrates how to set a predefined value. Let me know if you need further assistance.

Best regards,
Daniel
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Jake
Top achievements
Rank 1
answered on 15 Oct 2010, 03:45 PM
Thanks for the sample. The sample uses a date picker. However, all my data fields are text fields. There is no date picker involved. Can you please provide another example on how to pre-populate for text field?
0
Daniel
Telerik team
answered on 21 Oct 2010, 09:29 PM
Hello Jake,

I modified the sample project - it should be suitable for your scenario now.

Regards,
Daniel
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Filter
Asked by
Jake
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Jake
Top achievements
Rank 1
Share this question
or