Thanks for getting back to me and for the further details.
I am sorry for the misunderstanding. It seems that I did not get the idea correctly.
Setting the Location
property will not function while the AutoSize
property of the RadLabelElement
If you wish to manually adjust the size of the RadLabelElement
, you should simply set its AutoSize
property to false.
This will serialize an explicit Bounds
property setting in the InitializeComponent
method for the element and this setting will be altered each time you resize the element.
However, I think there is more elegant way to build up your label hierarchy in order to achieve an effect of aligning the right labels to the longest left label. The idea is to create one horizontal button group with two vertical button groups inside. You can set the ShowBorder
property of these two groups to false.
Then, in the left button group you insert the frist column of labels (lblStartFreq, lblEndFreq, lblStepSize) and in the second group you insert the other three labels accordingly. In this way, our layout system will automatically calculate the width of the groups according to the widest label inside and the content in them will be dynamically aligned as you require.
I have prepared a sample WinForms application that demonstrates the scenario. Please refer to the attachment for further details and do not hesitate to get back to me in case further questions arise.
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.