SPLITTER COLOR

4 posts, 0 answers
  1. Mauro Pederzolli
    Mauro Pederzolli avatar
    4 posts
    Member since:
    Dec 2009

    Posted 03 Aug 2017 Link to this post

    Hello,

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

    Thank you.

  2. Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    3949 posts

    Posted 03 Aug 2017 Link to this post

    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.
  3. Mauro Pederzolli
    Mauro Pederzolli avatar
    4 posts
    Member since:
    Dec 2009

    Posted 03 Aug 2017 in reply to Dess | Tech Support Engineer, Sr. Link to this post

    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.

     

     

  4. Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    3949 posts

    Posted 03 Aug 2017 Link to this post

    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.
Back to Top