changing Icon of a TreeNode

  1. #1

    changing Icon of a TreeNode

    My code is:


    <ext:Panel ID="pnlMain" runat="server" Width="200" Layout="Accordion" Split="true" Region="West" Margins="5 5 5 5" DefaultBorder="false">
        <Items>
            <ext:TreePanel ID="TreePanel1" IDMode="Explicit" runat="server" Animate="true" RootVisible="false"
                 Title="Item 1" AutoScroll="true" StyleSpec="margin-top: 0px;" Icon="ApplicationViewList" AnimCollapse="true">
                <Root>
                    <ext:TreeNode NodeID="root1" Expanded="true" Expandable="False">
                        <Nodes>
                            <ext:TreeNode NodeID="n1_1" Text="Item 1.1" AllowDrag="false" Icon="Accept"></ext:TreeNode>
                        </Nodes>
                    </ext:TreeNode>
                </Root>
            </ext:TreePanel>
        </Items>
    </ext:Panel>
    if I do:

    TreePanel1.Icon = Icon.Add;
    it works but I don't know how to find the NodeID "n1_1" to change its icon.
  2. #2
    solved without answers.

Similar Threads

  1. Replies: 0
    Last Post: Dec 10, 2009, 11:14 AM
  2. Changing cls property TreeNode
    By Kaido in forum 1.x Help
    Replies: 2
    Last Post: Sep 18, 2009, 4:42 AM
  3. [CLOSED] TreeNode Icon
    By speedstepmem2 in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Mar 25, 2009, 12:22 PM
  4. [CLOSED] TreeNode Icon
    By Sharon in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Jan 29, 2009, 7:28 AM
  5. Treenode Icon
    By DasPhansom in forum 1.x Help
    Replies: 1
    Last Post: Jan 28, 2009, 11:57 AM

Posting Permissions