Node Text Editing is not working.

2 posts, 0 answers
  1. Gaurav
    Gaurav avatar
    9 posts
    Member since:
    Feb 2011

    Posted 08 Feb 2011 Link to this post

    I have created node dynamically
    Aspx code:-
    <telerik:RadTreeView ID="RadTreeViewCategory" runat="server" OnNodeExpand="RadTreeViewCategory_NodeExpand"
                        OnNodeDataBound="RadTreeViewCategory_NodeDataBound" AllowNodeEditing="true" OnNodeEdit="RadTreeViewCategory_NodeEdit">
                            <div style="float: left; padding-right: 10px;">
                                <asp:ImageButton ID="lnkEdit" runat="server" OnClientClick='<%# string.Format("return showItemDetail(\"{0}\", \"{1}\", \"{2}\");", Eval("ItemID"), SurvBenchHistID, Eval("IsReportCreated")) %>'
                                    ImageUrl="~/images/EditIcon.gif" ImageAlign="Middle" ToolTip="Edit in New Screen" />
                                <asp:Label ID="lblname" runat="server" Text='<%# Eval("ReportItemShortText") %>' /></div>
                            <div style="float: right; padding-left: 40px;">
                                <asp:Label ID="lblImportance" runat="server" Text='<%# Eval("Importance") %>' Visible="false" />
                                <asp:Label ID="lblItemID" runat="server" Text='<%# Eval("ItemID") %>' Visible="false" />
                                <asp:CheckBox ID="chkOptional" runat="server" Visible="false" />
                                <asp:Label ID="lblReportItemText" runat="server" Text='<%#Eval("ReportItemText") %>'
                                    Visible="false" />
                                <asp:DropDownList ID="ddlImportance" runat="server" />
                            <telerik:RadTreeNodeBinding Expanded="True" />

    protected override void OnLoad(EventArgs e)
                if (!IsPostBack)

    private void FillRadTree(DataTable dt)
                RadTreeViewCategory.DataTextField = "ReportItemShortText";
                RadTreeViewCategory.DataValueField = "ReportItemText";
                RadTreeViewCategory.DataFieldID = "ItemID";
                RadTreeViewCategory.DataFieldParentID = "ParentID";
                RadTreeViewCategory.DataSource = dt;

    protected void RadTreeViewCategory_NodeEdit(object sender, RadTreeNodeEditEventArgs e)
                RadTreeNode nodeEdited = e.Node;
                string newText = e.Text;
                nodeEdited.Text = newText;
  2. Nikolay Tsenkov
    Nikolay Tsenkov avatar
    734 posts

    Posted 08 Feb 2011 Link to this post

    Hi Gaurav,

    You can not use the default nodeEdit implementation when you use a NodeTemplate.
    Perhaps I am missing something?
    Please, explain in a bit more detail the issue you came across.

    Nikolay Tsenkov
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Back to Top