Update the Text of Rad Label

Environment

Product Version Product Author
2018.3.1016 RadLabel for WinForms Dimitar Karamfilov

Description

When performing a time-consuming operation on the UI thread the label text is not updated until the operation is finished.

Solution

Manually force the layout update. This way you can be sure that the proper value is displayed.

Update RadLabel Layout


this.radLabel1.LayoutManager.UpdateLayout();

If you are using a label inside a status strip use the following code.

Update Status SStrip Layout


radStatusStrip1.LayoutManager.UpdateLayout();
radStatusStrip1.Refresh();

In this article
Not finding the help you need? Improve this article