Announcement

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

    List Grid Field ediatble in new record.

    Hi, is it possible to make field editable only in new record mode ?
    I mean I want the field be editable only when I create new row in other cases the field must not be editable in List Grid.

    #2
    Yes, see the Grid Editing overview and note in particular the ability to override canEditCell().

    Comment


      #3
      Originally posted by Isomorphic View Post
      Yes, see the Grid Editing overview and note in particular the ability to override canEditCell().
      But the problem is that I have overridden the canEditCell() and it returns false in case if the row already saved in the datasource and true if the row is new one but in the both cases cell is not editable.

      Code:
      listGrid = new ListGrid (){
           @Override
           protected boolean canEditCell (int rowNum, int colNum)
           {
               // isNew () return true if creating new data, false if data exists
               return ! isNew ();
           }
      };

      Comment


        #4
        Most likely you have a logic bug, but if you think it's a framework problem, try creating a minimal, ready-to-run test case and we can take a look.

        Comment

        Working...
        X