Hi all,
I have 2 tabbars in my page…On of the tabbars contains a radTreeview and also a radListBox, both from telerik components…When I navigate between two tabs, telerik treeview and also listbox dont disappear, they are still there in another tab…What should I do?
Here is my code:
<div class="content">
<table>
<tr>
<td>
<div id="a_tabbar" style="width: 800px; height: 600px; direction: rtl;" dir="rtl">
<div id='html_1'>
<table>
<tr>
<td>
<dxwgv:ASPxGridView ID="ASPxGridView1" runat="server" CssFilePath="~/App_Themes/BlackGlass/GridView/styles.css"
CssPostfix="BlackGlass" OnRowCommand="ASPxGridViewAllDims_RowCommand" AutoGenerateColumns="false">
<Styles CssFilePath="~/App_Themes/BlackGlass/GridView/styles.css" CssPostfix="BlackGlass">
<Header ImageSpacing="5px" SortingImageSpacing="5px">
</Header>
</Styles>
<Images ImageFolder="~/App_Themes/BlackGlass/GridView">
</Images>
<Columns>
<dxwgv:GridViewDataTextColumn VisibleIndex="0" CellStyle-CssClass="stylePointer">
<DataItemTemplate>
<asp:ImageButton ID="ImageButton1" CausesValidation="false" runat="server" ImageUrl="images/pointer/Ok.png" />
</DataItemTemplate>
<CellStyle CssClass="stylePointer">
</CellStyle>
</dxwgv:GridViewDataTextColumn>
<dxwgv:GridViewDataTextColumn PropertiesTextEdit-ClientInstanceName="DimTables"
Name="dimTables" VisibleIndex="1">
<PropertiesTextEdit ClientInstanceName="DimTables">
</PropertiesTextEdit>
<DataItemTemplate>
<asp:Label ID="lblDimNames" runat="server" Text='<%#Bind("Alias_Name")%>' SkinID="Label_Skin"></asp:Label>
</DataItemTemplate>
</dxwgv:GridViewDataTextColumn>
</Columns>
</dxwgv:ASPxGridView>
</td>
</tr>
</table>
</div>
<div id='html_2'>
<table>
<tr>
<td>
<telerik:RadTreeView runat="server" ID="radTreeView2" EnableDragAndDrop="false" OnClientMouseOver="onTreeViewMouseOver"
OnClientMouseOut="onTreeViewMouseOut" OnClientNodeDragStart="onTreeViewDragStart"
OnClientNodeDropping="onTreeViewDropping" OnClientNodeDragging="onTreeViewDragging"
OnClientNodeClicked="onClientNodeClicked" OnNodeExpand="radTreeView_NodeExpand"
Skin="Vista" Style="direction: rtl" Font-Names="Tahoma" Font-Size="11px" >
<Nodes>
</Nodes>
</telerik:RadTreeView>
</td>
<td>
</td>
<td>
<telerik:RadListBox runat="server" ID="RadListBox2" EnableDragAndDrop="True" AllowReorder="true"
Height="200px" OnClientDropping="onListBoxDropping" OnClientDragStart="onListBoxDragStart"
OnClientMouseOver="onListBoxMouseOver" OnClientMouseOut="onListBoxMouseOut" OnClientDragging="onListBoxDragging"
PersistClientChanges="true" OnClientLoad="onClientLoad" Width="150" AllowDelete="True">
<ButtonSettings ShowReorder="false" ShowDelete="true"/>
</telerik:RadListBox>
</td>
</tr>
</table>
</div>
</div>
</td>
</tr>
</table>
<script>
function initTabbar(container, mode, align) {
var tabbar = new dhtmlXTabBar(container, mode);
tabbar.setSkin('modern');
tabbar.setImagePath("Tabbar/codebase/imgs/");
tabbar.setAlign(align);
tabbar.enableContentZone(true);
tabbar.enableAutoSize("800px", "600px");
tabbar.addTab("a1", "T1", "200px");
tabbar.addTab("a2", "T2", "200px");
tabbar.setContent("a1", "html_1");
tabbar.setContent("a2", "html_2");
tabbar.showInnerScroll();
tabbar.enableAutoSize();
return tabbar;
}
tabbar = new initTabbar("a_tabbar", "top", "right");
</script>
</div>
Thanks…