How can I change the color of "radWaitingBar" dots programmatically?

1 Answer 92 Views
WaitingBar
Simos Sigma
Top achievements
Rank 2
Iron
Iron
Iron
Simos Sigma asked on 22 Aug 2022, 08:54 AM

Hello community!!!

I want to change the color of "radWaitingBar" dots programmatically.

I tried something like this (I found it into my form designer) but with no luck...

((Telerik.WinControls.UI.WaitingBarSeparatorElement)(this.PatchSwitch_radWaitingBar.GetChildAt(0).GetChildAt(0).GetChildAt(0))).BackColor = System.Drawing.Color.FromArgb(121, 191, 80);
Any idea how can I do this?

Thank you for your time!!!

1 Answer, 1 is accepted

Sort by
1
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 22 Aug 2022, 02:15 PM

Hello, Simos,

Please refer to the below code snippet demonstrating how to customize the color for the waiting indicator element: 

            DotsLineWaitingBarIndicatorElement indicatorElement = this.radWaitingBar1.WaitingIndicators[0] as DotsLineWaitingBarIndicatorElement;
            indicatorElement.ElementColor = Color.Red;
            this.radWaitingBar1.StartWaiting();

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

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Simos Sigma
Top achievements
Rank 2
Iron
Iron
Iron
commented on 23 Aug 2022, 08:26 AM

Thank you!!!
Tags
WaitingBar
Asked by
Simos Sigma
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or