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

Toggle color of filtering drop down

8 Answers 65 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Sabine
Top achievements
Rank 1
Sabine asked on 21 Jul 2010, 02:50 PM
Hi,

I'm using a custom filter row with a RadMenu to set different filter operators. This RadMenu has a one menu item with the FilteringDropDown control as header property and further filter operators added as child items. Now I'd like to change the color of the FilteringDropDown control as soon as a filter is applied. It should behave as the filter icons in your demo version of the custom filter row - but with a RadMenu and FilteringDropDown (because I'd like the menu to be closed when the user leaves the menu control ..).

Thank you.

8 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 21 Jul 2010, 02:54 PM
Hi Sabine,

We couldn't quite catch what are you trying to achieve. How are you using the grid's filtering drop down in a rad menu? Is RadGridView part of the whole picture?

Could you please open a separate support ticket and attach a sample project.

We are looking forward to hearing from you.

Kind regards,
Ross
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
0
Sabine
Top achievements
Rank 1
answered on 21 Jul 2010, 03:21 PM
Then just the other way: how can I hide (or close) the context menu when leaving the menu and not having selected any option (e.g. in the DateTimeColumnHeader.xaml)?
0
Rossen Hristov
Telerik team
answered on 21 Jul 2010, 03:47 PM
Hi Sabine,

Could you please send us a sample project as we have already asked you. Then specify your exact goal, i.e. what are you trying to achieve. Thanks in advance.

Greetings,
Ross
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
0
Sabine
Top achievements
Rank 1
answered on 21 Jul 2010, 04:31 PM
I think it's not necessary to send you a sample project- just have a look at your custom filter row.

There you use a RadContextMenu to select the appropriate filter option. When a filter option is selected (e.g. IsLessThan), the menu is hidden/closed and the filtering is applied to the data. If I only want to see the currently selected option without changing it (I use checkable menu items) I have to click somewhere else so that the menu get closed/hidden.

I'd like the current RadContextMenu to behave as a RadMenu concerning its visibility:
When I enter the filter icon (with the mouse) the menu should be opened. When I leave the menu (with the mouse) it should be closed.

So is it clear now? I don't know how to describe in another way. Sorry.
0
Hristo
Telerik team
answered on 22 Jul 2010, 08:26 AM
Hi Sabine,

RadContextMenu have an EventName that you can use to open it. For example you could set it to MouseEnter event and RadContextMenu will open on mouse enter (like RadMenu).
I would recommend to edit the template of the filtering control and there you could replace the button and context menu with RadMenu. This will be the better option.

I hope this information will help you.

Greetings,
Hristo
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
0
Sabine
Top achievements
Rank 1
answered on 22 Jul 2010, 01:50 PM
I'm not so experienced with silverlight controls. So which template do you mean? The file "FilteringRow.xaml"?

0
Rossen Hristov
Telerik team
answered on 23 Jul 2010, 09:41 AM
Hi Sabine,

You will have to edit the template of every single different cell type, for example NumericColumnHeader.xaml and all the rest. In other words -- in every XAML that you can find the RadContextMenu. Please, not that is is just and example and not a fully-featured supported product, so it is provided "as-is".

Greetings,
Ross
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
0
Marko
Top achievements
Rank 1
answered on 20 Dec 2011, 03:28 PM
Tags
GridView
Asked by
Sabine
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Sabine
Top achievements
Rank 1
Hristo
Telerik team
Marko
Top achievements
Rank 1
Share this question
or