Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by David on Nov 24, 2008 13:34
open dhtmlx forum
rename file or folder with dhtmlxfolder

Hello,
Could you please say me how rename file or folder with dhmlxfolder. I found to move, delete but not rename.
Answer posted by Support on Nov 25, 2008 01:45
You can enable editability as

folders.enableEditMode(true);

and switch currently active item to edit state by 

foders.editItem();

Also you can change value programmatically, as

  var data = folders.getItemDataObject(id);
  data.text = "some new"; //set new value
  folders.getItem(id).render(); //update item in view