Problem with ToolWindow ToolStrip or DockStrip

2 posts, 0 answers
  1. Ram
    Ram avatar
    1 posts
    Member since:
    Apr 2011

    Posted 06 Apr 2011 Link to this post


    I want to add the some Combobox,TextBox and Button on the DockTabStrip or Top of the ToolWindow of RadDock Control.
    But i am not getting any way to do this.

    And my anathor problem is that i rounded the shape of the e.DockWIndow with FIllPrimitive and BorderPrimitive properties that rounded
    the upper portion of the ToolWindow but back portion of the control is looking odd/rectangle.

    The Snap Shot of my problem with code over it is attached with this thread (dock.png).

    Please review this problem as soon as possible.

    private void radDock1_DockStateChanged_1(object sender, DockWindowEventArgs e)
                    e.DockWindow.Text = strCaption;
                    FillPrimitive fill = (FillPrimitive)((ToolTabStrip)e.DockWindow.DockTabStrip).CaptionElement.Children[0];
                    BorderPrimitive border = (BorderPrimitive)((ToolTabStrip)e.DockWindow.DockTabStrip).CaptionElement.Children[1];
                    fill.AutoSize = false;
                    fill.Size = new Size(e.DockWindow.Width, 35);
                   border.Shape = this.toproundedshape;
                catch (Exception)
  2. Alexander
    Alexander avatar
    306 posts

    Posted 11 Apr 2011 Link to this post

    Hello Ram,

    Thank you for your question.

    Please review this forum thread regarding your first question. You can add button elements but not RadComboBoxElement in the 'caption' area of ToolTabStrip.

    Concerning your second question, you should be able to change the BackColor of the FillPrimitive in your code snippet:

    fill.BackColor = Color.Green;
    fill.GradientStyle = GradientStyles.Solid;

    It this code does not work on your side, please open a support ticket and attach a sample project demonstrating the issue. It will help me investigate this case further.

    Kind regards,
    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