Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Mar 14, 2007 14:24
open dhtmlx forum
each cell ( except "tree" cells which are specific and has special command for such purpose ) can be en...

each cell ( except "tree" cells which are specific and has special command for such purpose ) can be enabled / disabled in next way

            grid.cells(rId,cInd).setDisabled(true);

 Also, in case of Pro version you can use dynamic typing feature, you can create a column as "ed" by default, but provide attribute type="ro" for cells in XML, which you want to set to read-only mode.

Answer posted on Mar 14, 2007 14:24

>--> is there a function to  unselect one of this rows using his ID ?

There is no such public function, but next can be used

            mygrid.selectCell(rowInd,0,false,true);

this function call selecting row with preserving previous selection, in such mode is equal to contrl-click on row, which deselect already selected row (rowInd - is index of row, not Id).

 > --> is there a function to  select all the rows ()?

There is no such function, some relative fast workarounds are possible to normal mode, but in smartRendering mode selecting row means that row will be rendered in grid. So select all functionality renders all rows in grid, and kills all performance advantage gained by SmartRendering feature.

> --> is there a function to  eneable selection using (shift and (up or

> --> down)

The shift and control keys has sense only while selecting with click, there is no way to enable the same behaviour for selecting from keyboard.
Answer posted by Alexandra (Support) on Dec 03, 2014 02:41

To find more precise comments upon this issue, we can offer you read about editable table javascript and javascript tabs examples.