Hello,
I'm attempting to update node title changes I make to a SQL database (using server side event OnNodeEdit) but I can't seem to get it working. If my node is called "New Node" and I hit F2 or dbl-click and change it to something else, when OnNodeEdit is called, it doesn't appear to detect the change, only the original name.
Here is a sample of my code:
I'm attempting to update node title changes I make to a SQL database (using server side event OnNodeEdit) but I can't seem to get it working. If my node is called "New Node" and I hit F2 or dbl-click and change it to something else, when OnNodeEdit is called, it doesn't appear to detect the change, only the original name.
Here is a sample of my code:
public void OnTitleEdited(object sender, RadTreeNodeEventArgs e)
{
string nodeID = e.Node.Value.ToString();
string nodeTitle = e.Node.Text.ToString();
....
....
}
<
telerik:RadTreeView ID="RadTreeView1" runat="server" OnNodeEdit="OnTitleEdited">
</telerik:RadTreeView>
If I edit a node, nodeID correctly returns the value, but nodeTitle returns the text prior to making the change, not after the change has been made.
How can I detect when the node text has been changed so that I can record those changes to a database?
Thanks!!