Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by andreea on Apr 19, 2008 01:51
open dhtmlx forum
Yes , only i am not using a grid ,i am using a dhtmlxTREE


Yes , only i am not using a grid ,i am using a  dhtmlxTREE 
how do i make just some items editable?  for a tree
------------------------------------------------------------------------
how do i make just some items editable?

for example just the ones that have the id like this id="attrib131", id="attrib44" etc?
Answers
Support, posted: Apr 18, 2008 07:44 | Direct link: index.php?s=normal&q=2879&a=3875
You can use onEditCell event

mygrid.attachEvent("onEditCell",function(stage,id,ind){
    if (id=="attrib131" || id=="attrib44") return true;
    return false;
});


Also grid allows to lock rows ( it can be done directly from XML ) , locked rows can't be edited
Answer posted by Support on Apr 21, 2008 02:16
>>how do i make just some items editable?  for a tree

You can use the same approach

mytree.attachEvent("onEdit",function(stage,id){
    if (id=="attrib131" || id=="attrib44") return true;
    return false;
});