Still persisting in trying to get these tabs to work, building the tabstrip up after the page has loaded. Here's the latest issue:
If the TabString is in a container with restricted width, and ScrollChildren is set to "true", if tabs are added using tabList.insert() then the scrolling doesn't work properly.
Using IE8 but I don't think it's browser related - if you add tabs using the "add" function instead it works as expected.
Here's some code that demonstrates the problem:
If the TabString is in a container with restricted width, and ScrollChildren is set to "true", if tabs are added using tabList.insert() then the scrolling doesn't work properly.
Using IE8 but I don't think it's browser related - if you add tabs using the "add" function instead it works as expected.
Here's some code that demonstrates the problem:
<
div
style
=
"background-color: #cccccc; width: 500px; height: 50px; border: 1px solid black;"
>
<
telerik:radtabstrip
id
=
"rts2"
runat
=
"server"
ScrollChildren
=
"true"
>
<
tabs
>
<
telerik:radtab
text
=
"First Tab"
value
=
"First Tab"
/>
</
tabs
>
</
telerik:radtabstrip
>
</
div
>
<
input
type
=
"button"
value
=
"Insert Tab"
onclick
=
"onInsertTab()"
/>
<
script
type
=
"text/javascript"
language
=
"javascript"
>
function onInsertTab() {
var tabStrip = $find('rts2');
var tab = new Telerik.Web.UI.RadTab();
tab.set_text("Inserted Tab");
var tabList = tabStrip.get_tabs();
// change the call below to "tabList.add(tab)" and it all works ok
tabList.insert(0, tab);
}
</
script
>