[CLOSED] Treepanel appendChild with Icon

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [CLOSED] Treepanel appendChild with Icon

    I have following code:
    function saveSearch(btn, text) {
            if (btn == 'ok')
                App.direct.SaveSearch(text, {
                    success: function (result) {
                        var store = App.TreePanel1.getStore();
                        node = store.getNodeById("savedSearches");
                        node.appendChild({
                            text: result,
                            leaf: true,
                        })
                    }
                });
        };
    This works, but I want to add node with icon: Icon.TableSave, and that newly created node is selected. Please help.
    Thanks.
    Last edited by Daniil; Sep 11, 2015 at 1:12 PM. Reason: [CLOSED]

Similar Threads

  1. Replies: 3
    Last Post: Mar 02, 2015, 2:45 PM
  2. TreePanel remote mode AppendChild
    By Wellington Caetano in forum 1.x Help
    Replies: 0
    Last Post: Jun 16, 2011, 8:15 PM
  3. Replies: 5
    Last Post: Mar 23, 2011, 9:57 AM
  4. about Treenode.Appendchild's icon
    By helpme in forum 1.x Help
    Replies: 0
    Last Post: Mar 09, 2010, 7:57 AM

Tags for this Thread

Posting Permissions