RadApplicationMenu And RadMenu Z order

4 posts, 0 answers
  1. Duane
    Duane avatar
    37 posts
    Member since:
    Sep 2010

    Posted 27 Oct 2010 Link to this post

    Hi,

    I wonder if any one can advise?

    I have a ShapedForm, with no shape yet applied. On this form is placed a RadTitleBar which is docked to the top. Also on this form is placed a RadMenu, also docked to the top. Both of these items have left padding of 50 to make space for a RadApplicationMenu to be placed in the top left hand corner.

    A RadApplicationMenu has been placed on the form positioned at 0,0. It sits over the RadTitleBar as I require, but sits under the RadMenu which I do not require. I want it to sit over both. I have tried changing zIndex in the "Element Hierarchy Editor" for both the RadApplicationMenu and the RadMenu but I can not manage to get the RadApplicationMenu to render over the RadMenu.

    What am I doing wrong?

    Thanks in advance.

    Best regards,
    Duane.
  2. Duane
    Duane avatar
    37 posts
    Member since:
    Sep 2010

    Posted 28 Oct 2010 Link to this post

    Further investigation has led me a slightly different route...

    This time I have created a standard Panel the cobined height of the RadTitleBar and RadMenu and docked this to the top of the form. I have then placed within the standard Panel, the RadTitleBar and RadMenu and docked the RadTitleBar to the top and the RadMenu to the bottom of the Panel. I have then placed the RadApplicationMenu in this Panel and positioned it at 1,1 and brought it to the front. This seems to get around the Z order being overridden.

    I'd still like to know if there are any better solutions, though.

    Best regards,
    Duane.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Jack
    Admin
    Jack avatar
    2333 posts

    Posted 02 Nov 2010 Link to this post

    Hi Duane,

    Thank you for contacting us. The ZIndex property is specific for elements that are part of our Telerik Presentation Framework or TPF. RadTitleBar, RadMenu and RadApplicationMenu are separate controls and their z-index depends on their position inside the Controls collection of the form. You can change that position by choosing the BringToFront and SendToBack options from the context menu at design-time. Nevertheless, your solution seems to be OK. If you have any further questions, we will be glad to help.

    Best wishes,
    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
  5. Duane
    Duane avatar
    37 posts
    Member since:
    Sep 2010

    Posted 08 Nov 2010 Link to this post

    Hi Jack,

    Thanks for that.

    I have moved the controls around and been selective about positioning and docking and now have a workable solution.

    Regards,
    Duane.
Back to Top