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

Close Button query

2 Answers 93 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Kenneth Jackson
Top achievements
Rank 1
Kenneth Jackson asked on 30 Aug 2009, 02:17 PM
I've recently tested the new raddock and the code for pretty much all operations is so much simpler that it really is a complete pleasure to use. However there is one thing that I got an example from off these forums some months ago that for some reason (I assume some simple oversight of mine) I cannot duplicate.

That is to add a close button(or any button) to a tab on the right side of said tab.
I can add the button no problem (with alot less code than before \o/)
 - correct size etc but for some reason it always aligns the button left.

I'm quite certain I'm missing something simple but for some reason can't figure it out.

Thanks in advance

2 Answers, 1 is accepted

Sort by
0
Accepted
Nikolay
Telerik team
answered on 02 Sep 2009, 03:41 PM
Hello Kenneth Jackson,

I suppose that you want to place a RadButtonElement in a tab of a ToolWindow. If so, please notice that the tab layout of the ToolTabStrip is inverted, so you need to set the Alignment to BottomLeft in order to set the button to the right side in a tab item.

I am attaching a sample project which demonstrates this approach. If you have additional questions, feel free to contact me.

Kind regards,
Nikolay
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Kenneth Jackson
Top achievements
Rank 1
answered on 02 Sep 2009, 05:27 PM
Perfect , thank you.
Tags
Dock
Asked by
Kenneth Jackson
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Kenneth Jackson
Top achievements
Rank 1
Share this question
or