Unable to get the waitbar to use the theme

1 Answer 5 Views
WaitingBar
Troy
Top achievements
Rank 1
Troy asked on 15 Jul 2025, 10:21 PM

I'm using the VisualStudio2022Dark and VisualStudio2022Light themes for my application.

I've used the waitingbar on a couple of longer loading controls (works great BTW).

However the overlay that appears over a control while waiting, always appears to be the light theme color.  On a dark theme, this is can be pretty visually jarring, especially when the associatedControl is a larger screen control.

Is there a way to set this overlay so that it uses a specific theme?  I haven't been able to get it to change at all programmatically.

1 Answer, 1 is accepted

Sort by
0
Nadya | Tech Support Engineer
Telerik team
answered on 16 Jul 2025, 11:18 AM

Hello, Troy,

I am glad to hear that you are using VisualStudio2022Dark and VisualStudio2022Light themes for your application.

RadWaitingBar offers the AssociatedControlCoverPanel property. This represents the semi-transparent layer that covers the associated control. If you want to change its color, you should set the AssociatedControlCoverPanel.BackColor property to the desired color:

I prepared an example for your reference:

protected override void OnShown(EventArgs e)
{
    base.OnShown(e);
    this.radWaitingBar1.AssociatedControl = this.radListView1;
    this.radWaitingBar1.AssociatedControlCoverPanel.BackColor = Color.FromArgb(125, 0, 0, 0);
    this.radWaitingBar1.StartWaiting();
}

I hope this helps. If you need any further assistance, please don't hesitate to contact me. 

Regards,
Nadya | Tech Support Engineer
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Troy
Top achievements
Rank 1
commented on 16 Jul 2025, 05:33 PM

Nadya,

Thank you for the response.

Unfortunately, I am unable to get this to work as you've shown.  Here is my code:

        Dim waitBar As New RadWaitingBar()
        waitBar.AssociatedControl = RadListControl1
        waitBar.WaitingStyle = WaitingBarStyles.SegmentedRing
        waitBar.Dock = DockStyle.Fill
        waitBar.AssociatedControlCoverPanel.BackColor = Color.FromArgb(175, 0, 0, 0)
        waitBar.StartWaiting()
This doesn't seem to affect the panel color at all, I've tried various color/alpha channel settings, etc.  Nothing seems to affect it.  Do you have any other suggestions of what I could be doing wrong?

 

Nadya | Tech Support Engineer
Telerik team
commented on 17 Jul 2025, 05:50 AM

Hello, Troy,

I am not sure where exactly is this code snippet is executed on your side, in the InitializeComponent() or later.

Is it possible to tre use the same code snippet but in the form's Shown/Load event? Similar to how I have used the OnShown().

Regards,
Nadya

Troy
Top achievements
Rank 1
commented on 17 Jul 2025, 03:42 PM | edited

I have the code being executed from within a custom function that is simply populating a radlistcontrol.  That function gets the content for the radlistcontrol from an HTTP API, so that's the need for the waitingbar.

In order to test, I dropped a radlistcontrol onto a radform, and then activated the above code through a button click event.

Tags
WaitingBar
Asked by
Troy
Top achievements
Rank 1
Answers by
Nadya | Tech Support Engineer
Telerik team
Share this question
or