:: Forum >>

cannot delete first row grid with checkbox is it bug?

this is the deleting method
===========================
obj.deleteRow(obj.getCurrentRow());
obj.setSelectedRows([]);
============================

geting javascript error

myData[r] has no properties
[Break on this error] obj.setCellText(function(c,r){return myData[r][c]});
Nal
Friday, August 15, 2008
return myData[r][c]
This code makes an error if you delete all rows from the myData array.
Alex (ActiveWidgets)
Friday, August 15, 2008
thx for reply but I only deleted the top row only with cell selection mode single.
Nal
Tuesday, August 19, 2008
I cannot reproduce this. Maybe you need to call getSelectedRows instead of the getCurrentRow if you are using multi-row-marker selection.
Alex (ActiveWidgets)
Tuesday, August 19, 2008
no progress alex
=============
I am using ActiveWidgets 2.0.2
this is the way setting the grid data to my Grid because my 7 th column is a checkbox column.

obj.setCellText(myData);
obj.setCellText(function(c,r){return myData[r][c]});
obj.setCellValue(function(col, row){return myData[row][6]=="0" ? true : false}, 6);
obj.setCellText(function(col, row){return this.getCellValue(col, row) ? "" : ""},6);

if I remove checkboxes column and set the grid data this way
obj.setCellText(myData);
there is no error how to slove this problem

Nal
Thursday, August 21, 2008
The error is getting only with checkboxes
Nal
Thursday, August 21, 2008

This topic is archived.


Back to support forum

Forum search