3 Answers, 1 is accepted
0

Princy
Top achievements
Rank 2
answered on 17 Dec 2008, 02:12 PM
Hello Manoj,
Check out ht efollowing code to get the original text of the edited node.
cs:
Thanks
Princy.
Check out ht efollowing code to get the original text of the edited node.
cs:
protected void RadTreeView1_NodeEdit(object o, Telerik.WebControls.RadTreeNodeEventArgs e) |
{ |
string oldtext = e.NodeEdited.Text; // original text |
string newText = e.NewText; // new text |
} |
Thanks
Princy.
0

Manoj
Top achievements
Rank 1
answered on 18 Dec 2008, 07:43 AM
Hi,
I want this in client side . I am using the "onClientNodeEdited" event . I am using this event because when user will edit any text I will change the color of the edited node . Now it is working , but problem is when I am pressing the "F2" and click out side it is changing the coour of the node . So before chaning the color of the node I have to check whether text has modified or not ?
I have written a function to change color of the edited node as
I want this in client side . I am using the "onClientNodeEdited" event . I am using this event because when user will edit any text I will change the color of the edited node . Now it is working , but problem is when I am pressing the "F2" and click out side it is changing the coour of the node . So before chaning the color of the node I have to check whether text has modified or not ?
I have written a function to change color of the edited node as
function
NewItemNodeEdited(sender, eventArgs)
{
var node = eventArgs.get_node();
eventArgs.get_node().get_textElement().style.color =
"red";
}
With Thanks & Regards
Manoj
0

Manoj
Top achievements
Rank 1
answered on 18 Dec 2008, 08:03 AM
Hi,
I got the solution .
I used eventArgs._node._originalTextHtml;
With Thanks & Regards
Manoj
I got the solution .
I used eventArgs._node._originalTextHtml;
With Thanks & Regards
Manoj