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

Filter Restricted to One Column

4 Answers 73 Views
Filter
This is a migrated thread and some comments may be shown as answers.
kencox
Top achievements
Rank 1
kencox asked on 08 Apr 2011, 08:56 PM
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

4 Answers, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 12 Apr 2011, 09:48 AM
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.

0
kencox
Top achievements
Rank 1
answered on 14 Apr 2011, 01:06 AM
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
0
kencox
Top achievements
Rank 1
answered on 17 Apr 2011, 08:30 PM
Any help here?

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

Ken
 

0
Iana Tsolova
Telerik team
answered on 18 Apr 2011, 01:47 PM
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.

Tags
Filter
Asked by
kencox
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
kencox
Top achievements
Rank 1
Share this question
or