Is there any way to get the RadLabel size when it is created via runtime?
I am trying to calculate the height of a container control by summing the height properties of the controls added to the container.
When create a new object instance of a RadLabel in code such as this:
Dim p_Label as New RadLabel
. . the width and height properties are set to 0 and remain at zero even after setting the text property.
I was looking for some type of Resize method that could be called after setting the .Text and .Font property, but have been unable to find such a way to cause the control to recalculate its size.
A point of clarification: after adding the RadLabel to a container the height property is always 1, which is not really the case.
I am trying to calculate the height of a container control by summing the height properties of the controls added to the container.
When create a new object instance of a RadLabel in code such as this:
Dim p_Label as New RadLabel
. . the width and height properties are set to 0 and remain at zero even after setting the text property.
I was looking for some type of Resize method that could be called after setting the .Text and .Font property, but have been unable to find such a way to cause the control to recalculate its size.
A point of clarification: after adding the RadLabel to a container the height property is always 1, which is not really the case.