Toggle color of filtering drop down

9 posts, 0 answers
  1. Sabine
    Sabine avatar
    10 posts
    Member since:
    Jul 2009

    Posted 21 Jul 2010 Link to this post

    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.
  2. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 21 Jul 2010 Link to this post

    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
  3. Sabine
    Sabine avatar
    10 posts
    Member since:
    Jul 2009

    Posted 21 Jul 2010 Link to this post

    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)?
  4. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 21 Jul 2010 Link to this post

    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
  5. Sabine
    Sabine avatar
    10 posts
    Member since:
    Jul 2009

    Posted 21 Jul 2010 Link to this post

    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.
  6. Hristo
    Admin
    Hristo avatar
    832 posts

    Posted 22 Jul 2010 Link to this post

    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
  7. Sabine
    Sabine avatar
    10 posts
    Member since:
    Jul 2009

    Posted 22 Jul 2010 Link to this post

    I'm not so experienced with silverlight controls. So which template do you mean? The file "FilteringRow.xaml"?

  8. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 23 Jul 2010 Link to this post

    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
  9. Marko
    Marko avatar
    4 posts
    Member since:
    Jun 2011
Back to Top