3.0.0

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
August 15,
return myData[r][c]
This code makes an error if you delete all rows from the myData array.
Alex (ActiveWidgets)
August 15,
thx for reply but I only deleted the top row only with cell selection mode single.
Nal
August 19,
I cannot reproduce this. Maybe you need to call getSelectedRows instead of the getCurrentRow if you are using multi-row-marker selection.
Alex (ActiveWidgets)
August 19,
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
August 21,
The error is getting only with checkboxes
Nal
August 21,

This topic is archived.

See also:


Back to support forum

Search

Version 2

Looking for AW 2.6 ?
The old site is here.