Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

Vertical Tab Container Height

$
0
0

Hello,

I'm using the AJAX toolkit tab container control.  I have the tabs set to vertical. Both the tabs and tab content are generated dynamically.

This has created a problem, because if the first tab has tab content that is not tall enough, the entire tab container doesn't show up - I get an invalid parameter error in my ScriptResource.axd file near the line $get(a.get_id()+"_headerSpannerHeight").style.height=j;


Furthermore - checking the tabpanel or tabcontainer height from code gives a height value of 0 - it seems that the height isn't generated until the control renders?

I've gotten around this issue by checking my category count - but surely there must be a better way to accomplish this?

Code for workaround:

                                If r.Items.Count < arrCategories.Count - 1 Then
                                    tp.Height = (arrCategories.Count - 1) * 25
                                Else
                                    tp.Height = r.Items.Count * 25
                                End If

Thanks,

Mike


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>