[CLOSED] Plugin to display button after node name in treepanel

  1. #1

    [CLOSED] Plugin to display button after node name in treepanel

    Is there is a way to display button(for example - delete) after node name in treepanel or treegrid?
    Last edited by Daniil; Oct 26, 2011 at 7:50 PM. Reason: [CLOSED]
  2. #2
    Hi,

    You could try to implement your custom TreeNodeUI class.

    As an example, you could look at the original TreeNodeUI class and the node UI class of a ColumnTree.

    As well I can suggest this alternative solution:
    http://forums.ext.net/showthread.php...ll=1#post65802
  3. #3
    Found another way:
       <ext:TreeGridColumn Header="Name" Width="100">
                                <XTemplate ID="XTemplate1" runat="server">
                                    <Html>
                                        <div class="row-imagecommand icon-delete " ext:qtitle="" ext:qtip="Delete Item" style=""  OnClick="deleteItemCommand('{values.id}');"></div> 
                                    </Html>
                                </XTemplate>
                            </ext:TreeGridColumn>
    var deleteItemCommand = function (nodeId) { var node = #{tgDistribution}.getNodeById(nodeId); node.parentNode.removeChild(node);};
    .icon-delete {
    	BACKGROUND-IMAGE: url(/icons/delete-png/ext.axd) !important
    }
  4. #4
    Good point, I didn't think about a TreeGrid.

Similar Threads

  1. How to get Node by id in treepanel 2.0?
    By tms2003@126.com in forum 2.x Help
    Replies: 1
    Last Post: Apr 03, 2012, 3:01 PM
  2. [CLOSED] Plugin to display extra buttons on treenode hover
    By jchau in forum 1.x Legacy Premium Help
    Replies: 22
    Last Post: Sep 26, 2011, 10:44 PM
  3. Treepanel Node
    By lindgrenm in forum 1.x Help
    Replies: 0
    Last Post: Feb 10, 2010, 3:08 PM
  4. TreePanel node expand button IE8
    By methode in forum 1.x Help
    Replies: 8
    Last Post: Sep 08, 2009, 4:00 AM
  5. TreePanel:Copying from one node to another node using drag and drop
    By eighty20 in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Jan 25, 2009, 7:48 AM

Posting Permissions