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

Fixed tool bar

5 Answers 165 Views
Toolstrip (obsolete as of Q3 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
JulioR
Top achievements
Rank 1
JulioR asked on 07 Dec 2007, 09:36 AM
Hi Telerik Team,

I would like to know how can I recreate the same tool bar than in VS 2005 (i.e. Solution Explorer Panel). I want to disappear the line of points to the left and make the tool bar fixed inside the docked panel.

Thanks in advance & regards,

Julio

5 Answers, 1 is accepted

Sort by
0
Boyko Markov
Telerik team
answered on 07 Dec 2007, 06:15 PM
Hello JulioR,

Use the following as a solution: 

1.  Hide the grip element:
  this.radToolStripItem1.Children[2].Visibility = ElementVisibility.Hidden;

2. Disable dragging of RadToolStripItem: 
this.radToolStrip1.ToolStripManager.AllowDragging = false;

3. Hide the overflow button of RadToolStripItem:
 this.radToolStrip1.ToolStripManager.ShowOverFlowButton = false;

Using this as a guide you should be able to achieve the base functionality of the toolBar in the solution explorer.

Please contact me if more questions pop up.

 
All the best,
Boyko Markov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
JulioR
Top achievements
Rank 1
answered on 10 Dec 2007, 09:06 AM
Thanks for the reply,

This works fine for dissapearing the right things, but now I'm trying to expand the toolbar to fit the content of the parent, and after trying with fitSizeMode and AutoSizeMode properties I can't find the right combination. How can I "dock to bottom" the ToolBarItem to his parent area?

Thanks again and regards,
Julio
0
Boyko Markov
Telerik team
answered on 10 Dec 2007, 01:24 PM
Hi JulioR,

Have you tried to use the Dock property of RadToolStrip? I mean the following:
  1. Create a new instance of RadToolStrip
  2. Add a new instance of RadToolStripElement
  3. Add a new instance of RadToolStripItem to the created RadToolStripElement
  4. Execute the code I've sent you in my last post
  5. Set the Dock property of RadToolStrip to Dock.Bottom
Let me know if this helps.
 

Regards,
Boyko Markov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
JulioR
Top achievements
Rank 1
answered on 10 Dec 2007, 04:24 PM
Hi Boyko,

The radToolStrip control is already docked at the bottom, but the radToolStripElement is not expanded to fit the radToolStrip area, and this is what I need. If you see the VS 2005 Explorer panel, the toolbar is expanded to the parent area.

Thanks,

Julio
0
Boyko Markov
Telerik team
answered on 12 Dec 2007, 02:04 PM
Hello JulioR,

We don't have a built-in logic to expand the toolStripItem to its parent area but you can use the MinSize property of RadToolStrip item to achieve this effect. For example:

this.radToolStripItem1.MinSize = new Size(this.radToolStrip1.Size.Width, 0);

I hope this helps.

 
Sincerely yours,
Boyko Markov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Toolstrip (obsolete as of Q3 2010)
Asked by
JulioR
Top achievements
Rank 1
Answers by
Boyko Markov
Telerik team
JulioR
Top achievements
Rank 1
Share this question
or