Mar 27, 2012, 2:22 PM
[CLOSED] [1.3] Problem with rootVisible on TreePanel
Hi,
I used a treepanel with asyncnode for childs.
The root is fixed and I would to show it dinamically, but If I set the RootVisible property on Treepanel object the root is always hide.
In aspx code I set the property to False because at the first time I need to hide it, but when I try to show it, the root is always hide.
The example code is the follow:
Thanks to all.
I used a treepanel with asyncnode for childs.
The root is fixed and I would to show it dinamically, but If I set the RootVisible property on Treepanel object the root is always hide.
In aspx code I set the property to False because at the first time I need to hide it, but when I try to show it, the root is always hide.
The example code is the follow:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server" Theme="Gray" CleanResourceUrl="false"
RethrowAjaxExceptions="true" />
<ext:Panel runat="server" Padding="0" Layout="FormLayout" Title="Panel" Height="400">
<TopBar>
<ext:StatusBar ID="tbToolbar" runat="server" StatusAlign="Left">
<Items>
<ext:Button runat="server" ID="Button1" Text="Button" Icon="Disk">
<Listeners>
<Click Handler="#{TreePanel1}.rootVisible = true;" />
</Listeners>
</ext:Button>
</Items>
</ext:StatusBar>
</TopBar>
<Items>
<ext:TreePanel ID="TreePanel1" runat="server" Title="Tree" Width="500" AutoHeight="true"
Border="false" RootVisible="false" Hidden="false">
<LoadMask ShowMask="true" />
<Root>
<ext:AsyncTreeNode NodeID="0" Text="Root">
</ext:AsyncTreeNode>
</Root>
</ext:TreePanel>
</Items>
</ext:Panel>
</form>
</body>
</html>
Is there a wrong thinksThanks to all.
Last edited by Daniil; Apr 02, 2012 at 10:40 AM.
Reason: [CLOSED]