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

Scrollbars in TabItem Content

2 Answers 140 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Scott Marsh
Top achievements
Rank 1
Scott Marsh asked on 27 Oct 2010, 03:57 PM
I am having difficulty scrolling content within a fixed height tab control. I have a Tab that contains an ItemsControl, which displays a number of DataForms. As I have the height of the Tab set to 400 I only have to display more than 2 data forms in the ItemControl before I need scroll bars to view them.

However I can find no way of having the content of the Tab scroll.

Any ideas would be welcome.

2 Answers, 1 is accepted

Sort by
0
Scott Marsh
Top achievements
Rank 1
answered on 28 Oct 2010, 11:24 AM
Well, while I would still like to know how to scroll tab content, I have just realised that I can use to built in paging of the Dataform control so scrolling isn't necessary.

0
Petar Mladenov
Telerik team
answered on 01 Nov 2010, 12:38 PM
Hi Scott Marsh,

You can edit the ControlTemplate of the RadTabControl  and put a ScrollViewer  to enwraps the ContentPresenter named "ContentElement". On the other hand,  you can use a ScrollViewer in the content of a particular RadTabItem .

I prepared a sample project illustrating the described approaches. Please examine it and let me know if it satisfies your.

Feel free to ask if you need more info. We would be glad to help you further.

Sincerely yours,
Petar Mladenov
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
TabControl
Asked by
Scott Marsh
Top achievements
Rank 1
Answers by
Scott Marsh
Top achievements
Rank 1
Petar Mladenov
Telerik team
Share this question
or