Hello,
this bugs me for hours. i can't seem to arrange controls added through RadMenuItem, please see attached screenshot.
here is the code i am using:
i tried to set the autosize property to false and set a custom size, but to no avail.
i am doing something wrong but what is it?
Thanks!
this bugs me for hours. i can't seem to arrange controls added through RadMenuItem, please see attached screenshot.
here is the code i am using:
RadMenuItem Item =
new
RadMenuItem();
RadButtonElement Btn1 =
new
RadButtonElement();
RadButtonElement Btn2 =
new
RadButtonElement();
Item.Text = Dates[i].ToString();
Btn1.DisplayStyle = Telerik.WinControls.DisplayStyle.Image;
Btn1.ImageAlignment = ContentAlignment.MiddleCenter;
Btn1.Image = Properties.Resources.edit;
Btn1.AutoSize =
false
;
Btn1.Size =
new
System.Drawing.Size(18, 18);
Item.Children[2].Children[0].Children[1].Children.Add(Btn1);
Btn2.Image = Properties.Resources.delete;
Btn2.DisplayStyle = Telerik.WinControls.DisplayStyle.Image;
Btn2.ImageAlignment = ContentAlignment.MiddleCenter;
Btn2.AutoSize =
false
;
Btn2.Size =
new
System.Drawing.Size(18, 18);
Item.Children[2].Children[0].Children[1].Children.Add(Btn2);
DateList.Items.Add(Item);
i tried to set the autosize property to false and set a custom size, but to no avail.
i am doing something wrong but what is it?
Thanks!