Filter Restricted to One Column

5 posts, 0 answers
  1. Ken Cox
    Ken Cox avatar
    100 posts
    Member since:
    Oct 2002

    Posted 08 Apr 2011 Link to this post

    I'm trying to use the RadFilter to work around the following limitation:

    "RadGrid's filtering does not support "Between" FilterFunction when the RadGrid is bound to the EntityDataSource."

    What I need is a Filter showing only one field (Date) that appears on startup. Much of the Filter UI should be hidden, including the TimePickers. I've attached a picture of what the desired result.

    Any ideas how I can build a stripdown version of the RadFilter like this?

    Thanks,

    Ken
    Microsoft MVP [ASP.NET]
    ASPInsider
  2. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 12 Apr 2011 Link to this post

    Hello Ken,

    In order to achieve your goal, I suggest that you try implementing a custom filter template similar to the one used for the same purpose in this demo.
    Other than this, you can add RadFilter in the grid column FilterTemplate with a predefined filter expression. The handle the server-side ItemCommand event to cancel the addition of other expressions.

    Kind regards,
    Iana
    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.

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Ken Cox
    Ken Cox avatar
    100 posts
    Member since:
    Oct 2002

    Posted 13 Apr 2011 Link to this post

    Hi Iana,

    Thanks for your response.

    I've made some progress on removing the unwanted filter items. However, I need help on making one filter item appear automatically when the Filter loads. I don't want to require the user to click anywhere to make it appear.

    Is there a method or property I can set to make one item visible at all times?

    Thanks,

    Ken
  5. Ken Cox
    Ken Cox avatar
    100 posts
    Member since:
    Oct 2002

    Posted 17 Apr 2011 Link to this post

    Any help here?

    How can I add a predefined filter expression and make it visible when the RadFilter appears?

    Ken
     

  6. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 18 Apr 2011 Link to this post

    Hello Ken,

    Check the attached sample illustrating how you can add default expressions for RadFilter.
    Give it a try and let me know if any issues arise.

    Greetings,
    Iana
    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
UI for ASP.NET Ajax is Ready for VS 2017