Marcio Nascimento
Top achievements
Rank 1
Marcio Nascimento
asked on 10 Apr 2011, 04:23 PM
Hi There!
I just need some help here. What I am trying to do is quite simple.
I'm using RadTreeView and context menus. When I click to "Add" a new node, I want to be able to enable edit mode on the node instantly to rename it.
Is it possible ?
Appreciate any help from you guys!
Regards,
Marcio Nascimento
I just need some help here. What I am trying to do is quite simple.
I'm using RadTreeView and context menus. When I click to "Add" a new node, I want to be able to enable edit mode on the node instantly to rename it.
Is it possible ?
Appreciate any help from you guys!
Regards,
Marcio Nascimento
4 Answers, 1 is accepted
0
Accepted
Hi Marcio Nascimento,
Please take a look at this demo for an example. Choose "New Folder" from the context menu and a new node will be created and right after the creation the node is in edit mode.
All the best,
Veronica Milcheva
the Telerik team
Please take a look at this demo for an example. Choose "New Folder" from the context menu and a new node will be created and right after the creation the node is in edit mode.
All the best,
Veronica Milcheva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Marcio Nascimento
Top achievements
Rank 1
answered on 14 Apr 2011, 02:56 AM
Thanks Veronica!
That's really a full example!
Regards,
Marcio Nascimento
That's really a full example!
Regards,
Marcio Nascimento
0
Ted
Top achievements
Rank 1
answered on 29 Jun 2011, 01:56 PM
is there a way to make the node text editable if you are also calling an ajax postback on the OnClientNodeClick?
function NodeClicked(sender, e) {
var radManager;
var node = e.get_node(); // gets a RadTreeNode object
if (node != null) {
//Get reference to RadAjaxManager on page
if (radManager == null)
radManager = $find('<%= RadAjaxManager.GetCurrent(this).ClientID %>');
clickedNodeID=e.get_node().get_value()
//Fire ajax request (optionally pass an event arg value)
radManager.ajaxRequest("NodeClicked|"+e.get_node().get_value());
}
}
0
Hello Ted,
Yes, it is possible however I suggest you to use the OnClientNodeClicking event instead of OnClientNodeClicked.
Please let me know if you have further questions.
Greetings,
Veronica Milcheva
the Telerik team
Yes, it is possible however I suggest you to use the OnClientNodeClicking event instead of OnClientNodeClicked.
Please let me know if you have further questions.
Greetings,
Veronica Milcheva
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.