Hi Allan,
Thanks for writing.
I am afraid the width of the
RadProgressBarElement cannot be set automatically however you can do the same easily using some code. The work-around is to measure the string you want to set and set the size of the
RadProgressBarElement to the string width. Please see the code snippet below:
Graphics g = radStatusStrip1.CreateGraphics(); |
int width = (int)g.MeasureString(radProgressBarElement1.Text, radProgressBarElement1.Font).Width + 10; |
radProgressBarElement1.Size = new Size(width, radProgressBarElement1.Size.Height); |
Please write back if you have other questions.
Kind regards,
Victor
the Telerik team
Check out
Telerik Trainer, the state of the art learning tool for Telerik products.