Pre-populate expression when it added in filter

4 posts, 0 answers
  1. Jake
    Jake avatar
    2 posts
    Member since:
    Aug 2010

    Posted 07 Oct 2010 Link to this post

    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?

     

  2. Daniel
    Admin
    Daniel avatar
    4943 posts

    Posted 13 Oct 2010 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jake
    Jake avatar
    2 posts
    Member since:
    Aug 2010

    Posted 15 Oct 2010 Link to this post

    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?
  5. Daniel
    Admin
    Daniel avatar
    4943 posts

    Posted 21 Oct 2010 Link to this post

    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
Back to Top