[CLOSED] Tree Editor does not work

Threaded View

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

    [CLOSED] Tree Editor does not work

    On right click to tree, display menu and the from menu I can insert another node to treepanel in v1.1 but now displayed menu on right click on node of tree but editor does now work, image displayed and editor area disabled and could not insert text to tree editor

    <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %>
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <%@ Register Src="../Shared/Controls_Store/store_Location.ascx" TagName="store_Location"
        TagPrefix="uc1" %>
    <script runat="server">
        protected void Page_Load(object sender, EventArgs e)
            if (InfoHelpDeskWebApp.Models.User.IsLoggedinUserAdministrator())
    <ext:Menu ID="TreeContextMenu" runat="server" EnableScrolling="false">
            <ext:Label ID="NodeName" runat="server" Cls="bold-text" />
            <ext:MenuSeparator />
            <ext:MenuItem ID="MenuItem4" runat="server" Text="<%$ Resources:HelpDeskWebApp,InsertChild%>"
                    <Click Handler="var id = this.parentMenu.dataRecord;#{TreePanel1}.appendChild(id, '');" />
            <Show Handler="#{NodeName}.el.update(rec.data.text);" />
    <script type="text/javascript" src="../../Scripts/AppScripts/Location.js"></script>
    <script type="text/javascript">
            var rec ;
            var getRecord = function( record)
                rec= record;
    <ext:Viewport ID="Viewport1" runat="server" Layout="fit">
            <ext:Panel ID="PanelContent" runat="server" Layout="Fit" Region="Center" AutoScroll="true">
                    <ext:TreePanel ID="TreePanel1" runat="server" UseArrows="true" AutoScroll="true"
                        Animate="true" EnableDD="false" Mode="Remote" RootVisible="true" AllowLeafDrop="true"
                        ContainerScroll="true" Title="<%$ Resources:HelpDeskWebApp,Tree%>" Border="false"
                        RemoteJson="true" RemoteInsertUrl="/Locations/RemoteInsert" RemoteRemoveUrl="/Locations/RemoteRemove"
                        RemoteRenameUrl="/Locations/RemoteRename" RemoteMoveUrl="/Locations/RemoteMove"
                        RemoteAppendUrl="/Locations/RemoteInsert" AutoHeight="true">
                            <ext:TreeStore ID="TreeStore1" runat="server">
                                    <ext:AjaxProxy Url="/Locations/getNodes" Json="true">
                                        <ActionMethods Read="POST" />
                            <ext:TextField ID="TextField1" runat="server" AutoShow="true" />
                        <SelectionSubmitConfig Encode="true" />
                            <ext:Node NodeID="1" Text="<%$ Resources:HelpDeskWebApp,LocationName%>" />
                            <ItemContextMenu Handler="e.preventDefault();#{TreeContextMenu}.dataRecord = record; getRecord(record);#{TreeContextMenu}.showAt(e.getXY());"
                                StopEvent="true" />
                            <RemoteActionRefusal Handler="Ext.Msg.alert('Error', e.message);" />
    Image from v1.1
    Click image for larger version. 

Name:	MenuV1.1.PNG 
Views:	7 
Size:	4.8 KB 
ID:	7581
    Click image for larger version. 

Name:	Insert NodeV1.1.PNG 
Views:	7 
Size:	4.4 KB 
ID:	7580

    now image from v2.x
    Click image for larger version. 

Name:	MenuV2.x.PNG 
Views:	7 
Size:	6.3 KB 
ID:	7582 Click image for larger version. 

Name:	InsertNodeV2.x.PNG 
Views:	7 
Size:	8.1 KB 
ID:	7583
    Last edited by Daniil; Feb 12, 2014 at 3:59 PM. Reason: [CLOSED]

Similar Threads

  1. [CLOSED] row on directMethod in grid editor dont work
    By farallones in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Aug 14, 2013, 7:37 PM
  2. Replies: 1
    Last Post: Apr 02, 2013, 5:50 AM
  3. [CLOSED] Tree Panel not work for me in usercontrol.
    By stoque in forum 2.x Legacy Premium Help
    Replies: 5
    Last Post: Jun 30, 2012, 9:27 AM
  4. Replies: 2
    Last Post: Mar 03, 2010, 3:08 PM
  5. Replies: 3
    Last Post: Sep 17, 2009, 11:44 AM

Posting Permissions