[CLOSED] TreeList selection

  1. #1

    [CLOSED] TreeList selection

    Support,

    How can i mimic the clicking of the "test" node via javascript? I want the "test" node to highlight and call the "selectionchange" event.

    thanks,
    /Z

    <ext:TreeList
                                Width="190"
                                MarginSpec="10 0 0 0"
                                ID="TreeList1"
                                ExpanderFirst="false"
                                runat="server">
                                <Listeners>
                                    <SelectionChange Fn="handleTLProfileSel" />
                                </Listeners>
                                <Store>
                                    <ext:TreeStore ID="TreeStore1" runat="server">
                                        <Root>
                                            <ext:Node Expanded="true">
                                                <Children>
                                                    <ext:Node NodeID="summary" Text="Summary" Leaf="true" IconCls="x-fa fa-user-o" />
                                                    <ext:Node NodeID="test" Text="Test Details" Leaf="true"  IconCls="x-fa fa-address-card-o" />
                                                </Children>
                                            </ext:Node>
                                        </Root>
                                    </ext:TreeStore>
                                </Store>
                            </ext:TreeList>
    Last edited by fabricio.murta; Jan 02, 2019 at 4:06 AM.
  2. #2
    Hello @Z!

    Just use Ext.tree.List.setSelection(). I tested it here, it is calling the selectionchange event.

    Hope this helps!
    Fabrício Murta
    Developer & Support Expert
  3. #3
    thanks. i was using that elsewhere and i seem to have overlooked it.
    works fine.
    thanks
    /Z
  4. #4
    Glad it helped, thanks for the feedback, @Z!
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. [CLOSED] TreeList in Ext.NET
    By sveins12 in forum 4.x Premium Help
    Replies: 10
    Last Post: Aug 23, 2018, 4:33 PM
  2. Replies: 1
    Last Post: Sep 17, 2015, 6:19 PM
  3. Replies: 1
    Last Post: Sep 26, 2014, 10:46 AM
  4. Replies: 1
    Last Post: Dec 04, 2013, 11:53 AM
  5. Replies: 7
    Last Post: Oct 20, 2010, 3:30 PM

Posting Permissions