Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
230
Problem with inserting and editing new nodes in webtree from client
posted

I'm trying to insert a new node and immediately place it in edit mode. It works fine as long as the node is expanded. However, If the node is not expanded, javascript expceptions are thrown when the attempt is made to set focus to the edit control (in the infragistics js code). I've tried to programmatically expand the node, but I believe that call is not working, or is asychronous and not completing in time for the edit control to be visible. The data source is a custom hierarchical data source. I've also tried to set the LoadOnDeman to "notset", but that does not resolve the issue. The javascript and aspx markup are shown below. Any help would be appreciated. I would like to use the control, but at this point I am also considering alternatives.  Thanks. (V 8.3)

var FolderTree=null;

 function initFolderTree(tree){FolderTree=igtree_getTreeById(tree);} function AddFolder() if (FolderTree)

 

{

 

  {     var node = FolderTree.getSelectedNode();     var newnode;     if (node)

 

 

 

    {      if (!node.getExpanded()) node.setExpanded(true); "New Folder"); 

 

      newnode = node.addChild(

    }    else

 

        newnode = FolderTree.addRoot("New Folder");

}

<ignav:UltraWebTree ID="Folders" runat="server" DataSourceId="FoldersDataSource" ExpandOnClick="false" Editable="true" LoadOnDemand="AutomaticSmartCallbacks" AutoPostBack="true" CssClass="Folder" ExpandAnimation="None" > <ClientSideEvents InitializeTree="initFolderTree" /> <SelectedNodeStyle CssClass="SelectedFolder"/> <Images SelectedImage-Url="/WebCommon/Images/folder_open.gif" DefaultImage-Url="/WebCommon/Images/folder.gif" /> <DataBindings> <ignav:NodeBinding TextField="FolderName" TagField="UniqueID" /> </DataBindings> </ignav:UltraWebTree>

 

 

 

 

 

 

 

 

Parents Reply Children
No Data