Sorry for the delay.
- Indeed there is an issue with the positioning of the context menus on multimonitor systems. It will be fixed for in upcoming releases.
- The layout of the menu items is done so that the container of the text and the image is not stretched to the whole width of the popup menu you see. This forces you to align the container instead of the primitives inside it. Here is sample code that aligns all menu items to the right of a menu element with the hint aligned to the left:
|for (int i = 0; i < this.radDropDownMenu1.Items.Count; i++) |
| RadElement imageAndTextLayout = this.radDropDownMenu1.Items[i].Children.Children; |
| imageAndTextLayout.Alignment = ContentAlignment.TopRight; |
| RadElement hintTextPrimitive = this.radDropDownMenu1.Items[i].Children.Children; |
| hintTextPrimitive.Alignment = ContentAlignment.TopLeft; |
|Dim i As Integer = 0 |
|Do While i < Me.radDropDownMenu1.Items.Count |
| Dim imageAndTextLayout As RadElement = Me.radDropDownMenu1.Items(i).Children(1).Children(0) |
| imageAndTextLayout.Alignment = ContentAlignment.TopRight |
| Dim hintTextPrimitive As RadElement = Me.radDropDownMenu1.Items(i).Children(1).Children(1) |
| hintTextPrimitive.Alignment = ContentAlignment.TopLeft |
| i += 1 |
In the future, we intend to modify the layout and possibly the hierarchy of the drop down menu. Either way, the code given here will become incorrect. After we make these changes, you will be able to align the text in a simpler way than the one that is given here.
the Telerik team