AJAX Toolkit (Tab Panel Height)

N

NvrBst

Anyone know how to force the Tab Panel to the remaining height of the
page?

"<cc1:TabPanel ...>" has a height option but only accepts pixels.

My page goes
<body><form ...><div><cc1:TabContainer ...><cc1:TabPanel ...>

I tried playing with the div / TabContainer / TabPanel (height="100%"
and style="height:100%"), options but none get the TabPanel to take up
the remaining space on the page. Strangly, TabPanel does accept
"width=100%"...


If top isn't possible, would someone know how to get the height of the
display area of the webpage currently open (from a <script
runat="server"> block). Either VB.NET or C# is fine.

Thanks
NB
 
B

bruce barker

html 4.0+ does not support a default page height (only width). so for
100% to work it must be inside an object with a absolute size.

this means to set the tab to the viewport size you must use javascript
and calc the size after render.

any good javascript book should cover this, and if you are going to do
web development you should learn the dom.

- bruce (sqlwork.com)
 
N

NvrBst

html 4.0+ does not support a default page height (only width). so for
100% to work it must be inside an object with a absolute size.

this means to set the tab to the viewport size you must use javascript
and calc the size after render.

any good javascript book should cover this, and if you are going to do
web development you should learn the dom.

- bruce (sqlwork.com)









- Show quoted text -

Thanks for the reply. Yeah, after posting I realized to do it with
the 2nd method I'd have to use client side scripts to find render
height with an onResize type event.

I'm a little new to ASP.NET so not 100% sure what you mean by must be
inside an object with an absolute size (Objects that take a height
option (with pixels) I think you mean). But I'll look into it and ask
if I run into a problem.

Thanks Again

NB
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top