Highlight GroupElement

8 posts, 1 answers
  1. Craig Booth
    Craig Booth avatar
    7 posts
    Member since:
    Jun 2005

    Posted 04 Jan 2010 Link to this post

    I wish to make the panel bar more like Outlook. I have select the OutlookNavPane as the group style, and I have modified the capiton with some additional code, but I am struggling the make the GroupElement highlight orange when it has been selected.

    Can this be done? What is the best way to do this?

    Thanks.
  2. Craig Booth
    Craig Booth avatar
    7 posts
    Member since:
    Jun 2005

    Posted 04 Jan 2010 Link to this post

    I have found a post on page 2 showing how this is done entitled "Selected color on RadPanelBarGroupElement - June 2008".

    It looks like it has to be done programmatically, rather than a setting. The above thread does indicate that this would become default behaviour in the next release - doesn't seem to be the case though.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Answer
    Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 04 Jan 2010 Link to this post

    Hello Craig Booth,

    Maybe, my colleague Martin did not express himself correctly. He meant to say the feature will be included in one of our next releases, but he did not specified in which release exactly.

    However, the feature that Martin concerned is already implemented, so now you can make the selected group orange by modifying the default themes. This is the best way to achieve the desired look and feel.

    The key part of the custom theme is the Telerik.WinControls.UI.RadPanelBarVisualElement.Selected property that you should use in the RadPanelBarVisualElement state tabs. For additional information about Visual Style Builder, please refer to these support resources:
    Creating a Theme for RadPanelBar
    State Editor
    State Precedence Rules

    I am attaching a sample theme based on the ControlDefault theme. The states that I created for the RadPanelBarVisualElement can be used as a pattern in case you want to modify other themes.

    I hope this helps. if you have additional questions, feel free to contact me.

    Regards,
    Nikolay
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  5. Craig Booth
    Craig Booth avatar
    7 posts
    Member since:
    Jun 2005

    Posted 07 Jan 2010 Link to this post

    OK - I have worked through this and now see how it works.

    I was initially curious as to why the MouseOver states were needed together with the Selected state, but I presume that the state engine only evaluates based upon change - hence you need to include a mouse event so that Selected condition is evaluated.

    Thanks Nikolay
  6. Haroon
    Haroon avatar
    38 posts
    Member since:
    Dec 2007

    Posted 21 Feb 2010 Link to this post

    I used the theme "RadPanelBarOutlook2007.xml" you provided with group style as "Listbar". The problem I encountered is that, on fast selection of group elements appeared as shown in attached screen shots.

    I am using "RadControls for WinForms Q3 2009 sp1".

    Is there a problem or i missed something? What is the best way?
  7. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 23 Feb 2010 Link to this post

    Hello Haroon,

    I was able to reproduce the described issue and we will address it in one of our next versions. However, I am not able to provide you with a workaround for the time being.

    Your Telerik points have been updated for the report.

    Regards,
    Nikolay
    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.
  8. Abdulrahman Nabil
    Abdulrahman Nabil avatar
    12 posts
    Member since:
    Apr 2010

    Posted 18 May 2010 Link to this post

    Dear Nikolay ,
    Good day ,thanks for your nice supporting but i have a problem here as this thread denoted and after i applied the solution that you came with i find its work only in design time and in the first state when the form load if i clicked on the group the slected color never return .
    I add this
    Telerik.WinControls.UI.RadPanelBarVisualElement.Selected property that you should use in the RadPanelBarVisualElement state tabs.

    Can you help this , I will aprciate so much this important feature in your colection as it simulate the outlook correctly.

    Yours
    Abdulrahman nabil
  9. Jack
    Admin
    Jack avatar
    2335 posts

    Posted 21 May 2010 Link to this post

    Hello Abdulrahman Nabil,

    In Q1 2010 we released our new Visual Style Builder. You can find more about it in the help as well.

    The theme provided in this thread is created with the old version of the style builder and it can't be used directly with the new one. Nevertheless, with our new style builder it is much easier to modify an existing theme. Please, review the documentation and let us know if you need additional assistance.

    All the best,
    Jack
    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.
Back to Top
UI for WinForms is Visual Studio 2017 Ready