Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Issue in ListGrid Row Edit

    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
    Last edited by spant; 28 Sep 2011, 12:09.

    #2
    It's by design that we try to find the next editable row from the one you pass to startEditing(). If you don't want this effect, do not call startEditing() on a row that cannot be edited.

    Comment

    Working...
    X