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

Filter column based on cell background color

2 Answers 254 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Terry
Top achievements
Rank 1
Terry asked on 04 Nov 2014, 09:54 PM
I am using version 2014.2.729.45 of the RadGridView Control. I have used cell style selectors to change the background of the cells in a column to represent different situations. 

Is there a way to filter a column on a specific cell background color? An example of what I am looking for is in excel. If a column has cells with different colored backgrounds, you can select the color in the filter choices.

Does the RadGridView filtering have this capability? If not, is there a way I can add this functionality?

Thanks,
Terry


2 Answers, 1 is accepted

Sort by
0
Accepted
Dimitrina
Telerik team
answered on 06 Nov 2014, 12:14 PM
Hello Terry,

The filtering is a data operation and it will be done based on the DataMemberBinding specified for a column. Alternatively, you can specify a FilterMemberPath so that the column to be filtered on another property of the bound business object. For the purpose you should expose a property of your business object to represent the different colors.
You can also check our online documentation where the filtering is explained in details.


Let me know how this works for you.

Regards,
Dimitrina
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Terry
Top achievements
Rank 1
answered on 06 Nov 2014, 01:33 PM
Thank you for your response Dimitrina, I will give that a try.
Tags
GridView
Asked by
Terry
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Terry
Top achievements
Rank 1
Share this question
or