3.2.0

How to disable perticular column and row

Hi all,
I want to disable perticular row and column in grid. Those disabled column or row values cant be edited. I tried the function which i found in forums. but it didnt working. Please anyone help me to solve this problem.

obj.getRowTemplate(8).setStyle("enabled",false);
obj.getColumnTemplate(3).setStyle("enabled",false);

This is the way i used to disable row and column.
Panasa
October 9,
You can enable/disable cell editing with cellEditable property -

obj.setCellEditable(true); // enable editing for all columns
obj.setCellEditable(false, 1); // disable editing for column-1

The above code will disable editing for the second column. If you need to disable editing for the particular row you should call obj.setCellEditable(false, col, row) for each cell in that row.
Alex (ActiveWidgets)
October 9,
Hi alex,
Thanx for your support. Those functions are working fine.
Panasa
October 10,

This topic is archived.

See also:


Back to support forum