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

GridView Filtering

4 Answers 104 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 28 Sep 2011, 12:23 PM

Hi, I am using RadControls for WPF (Q2 2011), in particular the GridView control. I am aware this control includes a cool looking dialog for filtering the data for each column however due to the fact I am trying to implement custom paging using Entity Framework I would also like to customise the look of the filter dialog, is this possible and if so please explain how.

I'd like to keep the section whereby one is able to filter the results by text search etc. but I don’t want to display the top section allowing the user to select the specific items in the collection. Hope that makes sense, I would send a screen shot however I don’t think its possible here??

Thanks in advance

 

4 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 28 Sep 2011, 12:40 PM
Hi Michael,

You have two options. If you want to simply hide the upper distinct values part, then you can turn the ShowDistinctFilters property of the column off.

If you want to completely revamp the filtering control, you can do this by following my blog post.

I hope this helps.

Greetings,
Ross
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Michael
Top achievements
Rank 1
answered on 28 Sep 2011, 12:48 PM
Brilliant, just what I'm looking for! Thanks for the prompt response.

Because I am using my own paging, effectively I will be hitting the DB via EF whenever the user applies/removes/alters the filter. I asume I am ok in using the radGridView_Filtering & radGridView_Filtered events for this?

Thanks again.
0
Rossen Hristov
Telerik team
answered on 28 Sep 2011, 02:06 PM
Hello Michael,

I would use the Filtered event in order to translate the client-side filters to server-side ones. 

By the way, we will be releasing a RadEntityFrameworkDataSource control for Q3. You will be able to bind RadGridView to this control and everything will happen on the server automagically -- filtering, sorting, grouping and paging if you throw a RadDataPager into the picture. The only things that you need to create this RadEntityFrameworkDataSource is an ObjectContext instance (i.e. NorthwindEntities) and a the name of the query, i.e. "Customers". 

I hope that you will be able to play with this new control for our Beta release in about a month.

Kind regards,
Ross
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Michael
Top achievements
Rank 1
answered on 28 Sep 2011, 06:25 PM
Ok thanks, looks like the future version will meet our requirements, I'll look out ofr the update.
Tags
GridView
Asked by
Michael
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Michael
Top achievements
Rank 1
Share this question
or