:: Forum >>

how can i clear the editable grid

hi,

i'm using clearGrid method to clearing the grid...
but i'm using also editableGrid...
and i cannot editting anymore after i've called the clearGrid() method
because this method includes the clearCellModel()

how can i edit the grid after clear the grid (rows and all data)

thanx

var Flx1 = new AW.Grid.Extended;
Flx1.setFixedLeft(1);
with (Flx1){
    setId('Flx1');
    setColumnCount(2);
    setHeaderText(['COL1','COL2','COL3']);
    setColumnWidth([100,100,100]);
    setColumnIndices([1,2]);
    getCellTemplate(1).setStyle('text-align', 'right');
    getCellTemplate(2).setStyle('text-align', 'center');
    setCellEditable(true, 1)
    setCellEditable(true, 2)
}
Flx1.onHeaderClicked = function(event, index){return true;}

    function clearGrid(obj){
     with(obj){
         clearCellModel();
            clearRowModel();
     clearScrollModel();
     clearSelectionModel();
            setSortProperty("direction", "none");
     clearSortModel();
     refresh();
     }
    }
Serkan Eksi
Thursday, August 23, 2007
clearCellModel() resets all cell properties, including cellEditable, so you have to call setCellEditable(true) again.
Alex (ActiveWidgets)
Thursday, August 23, 2007

This topic is archived.


Back to support forum

Forum search