Change BackColor in RadDataEntry Validation Panel

1 Answer 54 Views
DataEntry Panel
Patgat
Top achievements
Rank 2
Iron
Iron
Iron
Patgat asked on 08 Sep 2022, 07:41 PM

Dear all,

does anyone know how to change the BackColor ofthe RadDataEntry ValidationPanel.

I have tried various ways like setting it up at design time in Visual Studio,

or just before showing it at run time

                dataEntry.ValidationPanel.BackColor = Color.PapayaWhip;
                dataEntry.ShowValidationPanel = true;

and also via some event such as

  private void rdeDynamicInput_Initialized(object sender, EventArgs e)
    {
        ValidationPanel vpanel = (sender as RadDataEntry).ValidationPanel;
        if(vpanel != null) vpanel.BackColor = Color.PapayaWhip;
    }

Thanks for your answer

 
 

1 Answer, 1 is accepted

Sort by
0
Maria
Telerik team
answered on 09 Sep 2022, 01:14 PM

Hello Patrick,

Thank you for your answer.

To change the back color of the ValidationPanel in the RadDataEntry control you need to set it like this:

this.radDataEntry1.ValidationPanel.PanelElement.Fill.BackColor = Color.PapayaWhip;

More information about the ValidationPanel can see in our documentation:

https://docs.telerik.com/devtools/winforms/controls/dataentry/validation 

I am sending you an example project as well.

I hope this works.

Regards,
Maria
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/.

Tags
DataEntry Panel
Asked by
Patgat
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Maria
Telerik team
Share this question
or