userdata tag

hi,

I have seen userdata tag in xml.

what is its purpose?

It can be used to transfer additional data which can be used for some purpose on clientside


    value
     1
     2


var mark=mygrid.getUserData(123,“mark”); //get value stored in XML

It looks userdata tag on row basis.
Can we have userdata tag on cell basis?
Can we set userdata on editing cell?
like:-
 doOncellEdit(){
    mygrid.setUserdata(“rowInd_cellInd”,“value”);
}
note:- rowInd_cellInd is cell id.
Thanks in advance.

The userdata can be global for all grid or per row, there is no possibility to have it per cell tag, but you can use code similar to next



    value0
    value1
     1
     2


mygrid.attachEvent(“onEditCell”,function(stage, rid, cind,value){
    if (stage == 2)
        mygrid.setUserdata(rid,“cell-”+cind, value);
    return true;
});


So while it not really cell based, you can set and get it.