This is a migrated thread and some comments may be shown as answers.

SPLITTER COLOR

3 Answers 105 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Mauro Pederzolli
Top achievements
Rank 1
Mauro Pederzolli asked on 03 Aug 2017, 05:41 AM

Hello,

how can I change, by property or by code, the color of the splitter ?

Thank you.

3 Answers, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 03 Aug 2017, 06:08 AM
Hello Mauro, 

Thank you for writing.  

RadDock is a derivate of RadSplitContainer. Hence, it uses internally other RadSplitContainers to arrange the documents. RadDock has a Splitters collection where you can access the desired splitter and change its color. Here is a sample code snippet which result is illustrated in the attached screenshot:
private void RadForm1_Load(object sender, EventArgs e)
{
    this.radDock1.Splitters[0].BackColor = Color.Red;
}

I hope this information helps. Should you have further questions I would be glad to help.

Regards,
Dess
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Mauro Pederzolli
Top achievements
Rank 1
answered on 03 Aug 2017, 11:45 AM

Hello Dess,

Im'sorry but, at my side, is not working. I've put a button with the code:

private void button1_Click(object sender, EventArgs e)
    {
      for (int k=0; k<radDock1.Splitters.Count; k++)
      {
        radDock1.Splitters[k].BackColor = Color.Red;
      }
    }

The problem is that radDock1.Splitters.Count is always zero.

Regards.

 

 

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 03 Aug 2017, 01:10 PM
Hello Mauro, 

Thank you for writing back. 

I have attached my sample project for your reference. If you are still experiencing any further difficulties, feel free to modify the project in a way to reproduce the experienced issue and get back to me with it so I can investigate the precise case. Thank you in advance. 
I am converting this forum thread into a support ticket in order to allow attachments. You can find the ticket in Your Telerik Account.

I am looking forward to your reply.

Regards,
Dess
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Dock
Asked by
Mauro Pederzolli
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Mauro Pederzolli
Top achievements
Rank 1
Share this question
or