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

RadApplicationMenu And RadMenu Z order

3 Answers 94 Views
ApplicationMenu
This is a migrated thread and some comments may be shown as answers.
Duane
Top achievements
Rank 1
Duane asked on 27 Oct 2010, 04:06 PM
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.

3 Answers, 1 is accepted

Sort by
0
Duane
Top achievements
Rank 1
answered on 28 Oct 2010, 02:12 PM
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.
0
Jack
Telerik team
answered on 02 Nov 2010, 12:13 PM
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
0
Duane
Top achievements
Rank 1
answered on 08 Nov 2010, 10:20 AM
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.
Tags
ApplicationMenu
Asked by
Duane
Top achievements
Rank 1
Answers by
Duane
Top achievements
Rank 1
Jack
Telerik team
Share this question
or