Docking Style problem.

2 posts, 0 answers
  1. Phillip Foster
    Phillip Foster avatar
    58 posts
    Member since:
    Apr 2010

    Posted 25 Jun 2010 Link to this post

    Ok. I'm not 100% sure how to explain this: so here goes.
    I have a user control that I made (see attachment control.jpg).

    on loading the application I use the following code to dynamically create tabs. (Page is the usercontrol).

    for (int i = 0; i < dtTabs.Rows.Count; i++) 
                    Page cp = new Page(dtTabs.Rows[i].ItemArray[1].ToString(), sCon, at, isPrimary,this); 
                    cp.Dock = DockStyle.Fill; 
                    RadPanel rp = new RadPanel(); 
                    rp.Dock = DockStyle.Fill; 
                    TabItem tab = new TabItem(); 
                    tab.Alignment = System.Drawing.ContentAlignment.BottomLeft; 
            tab.Name = dtTabs.Rows[i].ItemArray[1].ToString(); 
                    tab.Text = dtTabs.Rows[i].ItemArray[1].ToString(); 
                    tab.DisplayStyle = DisplayStyle.ImageAndText; 
                    tab.TextImageRelation = TextImageRelation.ImageBeforeText; 

    however when I use the dock.Fill property, or the anchor properties... the control does not display properly... it cuts off the bottom of the control and the right of the control.. See attachment (main.jpg); 

  2. Stefan
    Stefan avatar
    2908 posts

    Posted 01 Jul 2010 Link to this post

    Hi Phillip Foster,

    Thank you for contacting us.

    I tried to reproduce the issue locally (see the attached screen for details about the layout I used) but to no avail. I can only assume that something in the layouts wasn't set properly. Please take into consideration the following Knowledge Base article about docking controls and their z-order.

    If the above article does not help, could you please prepare a sample project which demonstrates the problem so that I can test it on my side?. This will help us to investigate your case and provide you with accurate assistance.

    I am looking forward to your reply.

    All the best,
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top