Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Prasad on Mar 19, 2008 03:09
open dhtmlx forum
Userdata

Hello

1. Can I change the name of Userdata tag?
Consider there is userdata with the name "oldname" and I want to change that name like this way changeUserDataName(rowId,oldname,newname).

2. Can I have multiple Userdata tag with the same name in the given scope(row/grid) ?
if yes, what I ll get if I call mygrid.getUserData(rowId,name);
Answer posted on Mar 19, 2008 06:04
>> 1. Can I change the name of Userdata tag?

There is no API to change userdata name. You can just set previous name of row userdata as null and set new one:

var ud =  mygrid.getUserData(rowId,oldName);

mygrid.setUserData(rowId,oldName,null);

mygrid.setUserData(rowId,newName,ud);

>> 2. Can I have multiple Userdata tag with the same name in the given scope(row/grid) ?

There is no opportunity to set multiple userdata with the same name for one row.