PDA

View Full Version : [CLOSED] treepanel CollapseFirst="true" does not work



cottimucin
Jul 25, 2014, 9:22 AM
<ext:Viewport ID="Viewport1" runat="server" Layout="BorderLayout" Height="500">
<Listeners>
<AfterRender Handler="#{Viewport1}.doLayout();" Delay="10" />
</Listeners>
<Items>
<ext:TreePanel ID="TreePanel1" runat="server" Icon="ReportGo" Title="Raporlar"
AutoScroll="true" Lines="true" UseArrows="true" RootVisible="false"
UI="Info" Width="350" CollapseFirst="true" Layout="FitLayout" Region="West" >
<Plugins>
<ext:BufferedRenderer ID="BufferedRenderer1" runat="server" />
</Plugins>
<%--<Listeners>
<BeforeLoad Handler="Ext.net.Mask.show({ el: App.TreePanel1.view });" />
<Load Handler="Ext.net.Mask.hide();" />
</Listeners>--%>

<DirectEvents>
<SelectionChange OnEvent="tpNodeClick">
<%-- <ExtraParams>
<ext:Parameter Name="id" Mode="Raw" Value="record.data.id" Encode="false" />
<ext:Parameter Name="leaf" Mode="Raw" Value="record.data.id" Encode="false" />
</ExtraParams>--%>
<EventMask ShowMask="True" Msg="Sayfa Y?kleniyor..." />
</SelectionChange>
</DirectEvents>
<SelectionModel>
<ext:TreeSelectionModel ID="DefaultSelectionModel1" Mode="Single" runat="server">
</ext:TreeSelectionModel>
</SelectionModel>
<BottomBar>
<ext:StatusBar ID="StatusBar1" runat="server" AutoClear="1500" UI="Info" Border="false" />
</BottomBar>
</ext:TreePanel>







<ext:FormPanel ID="MP1" runat="server" Frame="false" ButtonAlign="Center" UI="Info" Title="Başlık"
TitleAlign="Center" Region="Center" AutoScroll="true" Padding="0" BodyPadding="0" Margin="0" >


</ext:FormPanel>







</Items>
</ext:Viewport>

http://forums.ext.net/attachment.php?attachmentid=13821&stc=1

cottimucin
Jul 25, 2014, 9:33 AM
pardon I solved my problem.

Daniil
Jul 25, 2014, 10:02 AM
Hi @cottimucin,

Sharing a solution might help others on the forums in the future, who finds that thread by searching.