New to Telerik UI for WinForms? Start a free 30-day trial
Update the Text of Rad Label
Updated over 6 months ago
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
C#
this.radLabel1.LayoutManager.UpdateLayout();
If you are using a label inside a status strip use the following code.
Update Status SStrip Layout
C#
radStatusStrip1.LayoutManager.UpdateLayout();
radStatusStrip1.Refresh();