Announcement

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

    Dynamic setting editing property

    Hi everyone

    i am using smartgwt 2.3, and in my application i need to set the setCanEdit property dynamically.

    I will add a new row and if it is a new row some of the fields must be non-editable whereas existing records must be editable. how to do this.
    how to get the field of a particular row. i can get the field by getField(colNum)
    but how to get a field of a particular column and row.

    thanks in advance

    #2
    You can't set that property dynamically. Instead just override ListGrid.canEditCell() to dynamically provide the state. You can grab the current record with ListGrid.getRecord() if needed.

    Comment

    Working...
    X