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

RadDock - some design problems and questions

1 Answer 130 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Ofer
Top achievements
Rank 1
Ofer asked on 06 Dec 2012, 10:42 AM

I have a number of questions and problems with RadDock control, that I hope to solve with your help.

It is desirable to solve those problems by code or by VS designer, not by dealing with themes, if it is possible.

The RadDock in the picture is placed on some parent control, while tollstrip area is set to transparent and border size is 0.

1. RTL problem (1 in picture attached).

As it shown in the picture the tab borders are not drawn correctly.

The next solution can be acceptable for it. If it is impossible to solve it in RTL mode, may be tabs alignment can be set in LTR mode to the right side?

2. Can be the shifting of the tabs from right reduced to zero (2)?

3. Can the appearance of the tabs be changed programmatically or by designer or by owner draw to the something like this (3), including text color, text padding, tab width?

4. Can be 2 custom buttons added to the tab strip programmatically or by designer in the style like (4), one for the open tabs list and the other for closing of all opened tabs?

May the standard existing buttons (that are not shown in the picture) adapted in this way?

Can be any control be added to the tab strip area?

5. Can the appearance of tab close button be changed like (5): border, icon, disabled without hidden?

6. Can be the reordering of tabs be prevented?

7. And the colors of tab groups managed programmatically set like it is done in Internet Explorer?

1 Answer, 1 is accepted

Sort by
0
Boryana
Telerik team
answered on 07 Dec 2012, 01:01 PM
Hello Ofer,

Thank you for writing.

Let me get straight to your questions: 

1. I have modified the ControlDefault theme, so now the left border of the RadPageViewContentArea is rendered correctly in RTL mode.

2. The shifting is again handled in the theme settings.

3. Setting colors values programmatically overrides the theme style. That said, you have to use the theming mechanism in case you would like to handle different states: selected, disabled etc. The customized theme applies the colors, specified in the screenshot.

4. RadDock is a dynamic control, in the sense that it creates a number of DocumentTabStrips on the fly, depending on user interaction. That said, you can arrange a custom DocumentTabStrip that overrides the CreateChildItems and add custom elements there. In the attached sample project, adds an event handler for the close button click event.

5. Would you please explain further what is the exact appearance you would like to achieve? Do you mean that you do not want to hide the close button?

6. To prevent reordering set the TabStripElement's ItemDragMode to None. In this way every newly created  DocumentTabStrip will not allow item reordering.

7. I will need further information on the color you would like to change.

I am looking forward to your reply.

Kind regards,
Boryana
the Telerik team
Q3’12 of RadControls for WinForms is available for download (see what's new). Get it today.
Tags
Dock
Asked by
Ofer
Top achievements
Rank 1
Answers by
Boryana
Telerik team
Share this question
or