Hi, Today I upgrade the dhtmlxGrid prof and I have a problem:
getUserData don’t retrieve info.
I have a function attached in OnEditCell Event (setOnEditCellHandler was eliminated)
function myCalcGrup(rowId,col)
{
var regIds = (myCal.getSubItems(rowId)).split(’,’);
var jUDLit = ‘cap’+col;
var cap = myCal.getUserData(rowId, jUDLit);
alert(rowId + jUDLit + cap);
[…]
and a XML data like
999999999
999999999
999999999
999999999
999999999
999999999
0
0
[…]
with the alert I view that rowId is ##RO-COMERCIAL and jUDLit is cap4 but the variable cap is blanks.
Is there any change about the methode to retrieve userdata info?
I have a function attached in OnEditCell Event (setOnEditCellHandler was eliminated)
Mentioned functionality was marked in dhtmlxgrid 1.5 as depricated ( actually it was deprecated starting from dhtmlxgrid 1.4 )
The same effect can be achieved with
mygrid.attachEvent(“onEditCell” doOnCellEdit );
You can use correct syntax ( it will work for both dhtmlxgrid 1.5 and 1.6 ) or just include codebase/ext/dhtmlxgrid_deprecated.js to have full compatibility with older grid.
dhtmlx.com/docs/products/dhtmlxG … _art_mig16
>> with the alert I view that rowId is ##RO-COMERCIAL and jUDLit is cap4 but the variable cap is blanks.
Please use attached patch , to restore correct userdata processing
dhtmlxgrid_patch.zip (686 Bytes)