[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 3: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 Legacy Premium Help
    Replies: 10
    Last Post: Aug 23, 2018, 3:33 PM
  2. Replies: 1
    Last Post: Sep 17, 2015, 5:19 PM
  3. [CLOSED] TreeList filterBy very slow with more than 2500 nodes
    By adrianot in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Sep 26, 2014, 9:46 AM
  4. Replies: 1
    Last Post: Dec 04, 2013, 10:53 AM
  5. [CLOSED] Data selection case sensitive on Store with row selection issue
    By ljcorreia in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Oct 20, 2010, 2:30 PM

Posting Permissions