Hi,
- I am trying to edit the row and row columns will be edit based on some criteria.
- I have overridden the method canEditCell and based op the criteria, canEditCell method return true or false.
-The Row selection type is single so only one row can select at a time.
Test Case:
1) Select the row using check box and clicked on edit button.
Below is the code of Edit button:
var currentRecord = listGrid.getSelectedRecord();
listGrid.startEditing(listGrid.getRecordIndex (currentRecord));
Observed Behavior :
- If any column of the selected row is editable then selected row is editable.
- If no columns of the selected row is editable then next row where any column can edit is editable and the check box of the next editable row is checked.
I don't wanted to edit next row, if no column of the current selected row is editable.
Please Suggest.
SmartClient Version: 8.1/Enterprise Development Only (built 2011-08-02)
Browser : Firefox 3.6.22
- I am trying to edit the row and row columns will be edit based on some criteria.
- I have overridden the method canEditCell and based op the criteria, canEditCell method return true or false.
-The Row selection type is single so only one row can select at a time.
Test Case:
1) Select the row using check box and clicked on edit button.
Below is the code of Edit button:
var currentRecord = listGrid.getSelectedRecord();
listGrid.startEditing(listGrid.getRecordIndex (currentRecord));
Observed Behavior :
- If any column of the selected row is editable then selected row is editable.
- If no columns of the selected row is editable then next row where any column can edit is editable and the check box of the next editable row is checked.
I don't wanted to edit next row, if no column of the current selected row is editable.
Please Suggest.
SmartClient Version: 8.1/Enterprise Development Only (built 2011-08-02)
Browser : Firefox 3.6.22
Comment