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

Docking Style problem.

1 Answer 134 Views
Form
This is a migrated thread and some comments may be shown as answers.
Phillip Foster
Top achievements
Rank 1
Phillip Foster asked on 25 Jun 2010, 09:08 PM
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.Controls.Add(cp); 
                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; 
                 
 
                tab.ContentPanel.Controls.Add(rp); 
                cp.StartRefresh(); 
 
                tabMain.Items.Add(tab); 
 
 
            } 
 



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); 



1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 01 Jul 2010, 11:57 AM
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,
Stefan
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
Tags
Form
Asked by
Phillip Foster
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or