AllowEdit property to false - to prevent node became editable when clicked.
in the button_Click eventhandler i put call to
startNodeInEditMode function
as in the following code:
public void startNodeInEditMode(string nodeValue) { string js = "Sys.Application.add_load(editNode); function editNode(){ "; js += "var tree = $find(\"" + RadTreeView1.ClientID + "\");"; js += "var node = tree.get_selectedNode();"; js += "if (node) node.startEdit();"; js += "Sys.Application.remove_load(editNode);};"; RadScriptManager.RegisterStartupScript(Page, Page.GetType(), "nodeEdit", js, true); } protected void RadTreeView1_NodeEdit(object sender, RadTreeNodeEditEventArgs e) {e.Node.Text = e.Text;
The Problem :
The changed text of the node returns back to old version of text (the changes suddenly disappear after few seconds and old text appear)
Althougt i see that changes are saved in db inside the RadTreeView1_NodeEdit function.
Please help

I have a requirement for a project that I'm having some difficulty getting to work. I've looked at the following post, http://www.telerik.com/community/forums/aspnet-ajax/grid/client-side-expand-collapse-of-group.aspx, but it only takes me so far. For my page, I have a grid that is configured for client-side grouping. I have a requirement that the expanded groups are persisted on grid rebind. There is a control on the page that allows the user to select from a list of items that translate to the groups in the grid. So, the user selects 3 items in the list and there are 3 groups of those selected items in the grid, the user selects 5 items from the list and there are 5 groups in the grid, etc. In other words the number of groups is variable based on user selection.
I've set up a web service to handle the persisting of the group information via ajax callback from the page, and that all works fine. The problem I'm having is that there isn't any way to get the selected group information in the OnGroupExpanded or OnGroupCollapsed events. It appears that the sender is the grid itself and the event args are empty? I currently have the following code, based on the link above:
<telerik:RadGrid ...> <ClientSettings EnableRowHoverStyle="false"> <ClientEvents OnGroupExpanded="groupExpanded" /> </ClientSettings> ...</telerik:RadGrid>
function groupExpanded(sender, e) {var grid = $find(sender.get_id());var expandedGroupItems = grid._expandedGroupItems;var lastItemId = expandedGroupItems[expandedGroupItems.length - 1];alert("Owner TableView: " + lastItemId.split('!')[0]);alert("Table Row Index : " + lastItemId.split('!')[1]);}
Also, I'd like to say that the documentation for OnGroupsExpanded and OnGroupsCollapsed is incorrect. It states that the sender is a GridDataItem, when in fact it is the grid itself. It is a bit confusing.
Any and all help would be greatly appreciated.
Thanks,
-Matt.

<
httpHandlers>
<
add verb="*" path="Telerik.RadUploadProgressHandler.aspx" type="Telerik.WebControls.RadUploadProgressHandler, RadUpload.Net2"/>
<
add verb="POST,GET" path="csharpwrapper/*.ashx" type="Ajax.PageHandlerFactory, Ajax"/>
<
add verb="POST,GET" path="ajax/*.ashx" type="Ajax.PageHandlerFactory, Ajax"/>
</
httpHandlers>
<
httpModules>
<
add name="RadUploadModule" type="Telerik.WebControls.RadUploadHttpModule, RadUpload.Net2"/>
</
httpModules>
<
httpRuntime maxRequestLength="102400" executionTimeout="600"/>
Thanks in advance for any help.
RadGrid_UpdateCommand event like this:protected void RadGrid1_UpdateCommand(object sender, GridCommandEventArgs e){ GridEditableItem editItem = (GridEditableItem)e.Item; //extract the edited values in a Hashtable Hashtable values = new Hashtable(); editItem.ExtractValues(values); //get the saved old values before editing Hashtable oldValues = (Hashtable)editItem.SavedOldValues; //insert data to Database //... }