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

[Solved] Sizing TabStrip to 100%

3 Answers 180 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Lucas
Top achievements
Rank 1
Lucas asked on 30 Mar 2012, 06:00 PM
Hello,

I am having some trouble getting the tab strip and the contents inside each tab container to size to 100%. I would like the tabstrip to take up 100% of the view (minus a header) and I would like every control placed inside each tab to fill it up completely. 

There seems to be some sort of default padding inside each tab container and I cant seem to get rid of it.

I have attached my sample application to show what I am seeing. 

In each tab I have a basic div with its border being displayed to show the padding issues. On my Viewer tab I have a splitter control that I want to take up the whole tab. I also dont want any scroll bars in either of the panes in the splitter.

Any help would be greatly appreciated!

3 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 30 Mar 2012, 07:01 PM
Hi Lucas,

In order to remove the default TabStrip content padding, you can use:

div.t-tabstrip .t-content
{
    padding:0;
}

Generally, if you want the TabStrip to fill the available space perfectly, you need to set the height for the tabContentLayout elements with Javascript, as current web standards do not have a "occpy all available vertical space" option.

Kind regards,
Dimo
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now.
0
Lucas
Top achievements
Rank 1
answered on 30 Mar 2012, 07:25 PM
Hi Dimo,

Thank you for your quick response. The CSS below fixed my issue...

On setting the height of tabContentLayout elements with Javascript: Do you have an example of this? 

Thanks,
Lucas
0
Dimo
Telerik team
answered on 02 Apr 2012, 08:15 AM
Hi Lucas,

You can use the following jsFiddle demo:

http://jsfiddle.net/dimodi/QZcH7/

All the best,
Dimo
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now.
Tags
TabStrip
Asked by
Lucas
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Lucas
Top achievements
Rank 1
Share this question
or