Announcement

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

    Uneditable Fields in ListGrid

    Hi,

    I am using a ListGrid to display the records retrieved from a search operation, update existing records and add new ones as well.

    I want to disable the primary key columns so that the user cannot modify their values. I was able to do that by using "setCanEdit(false)" on the ListGridField (or on the Data Store).

    The problem is that in both cases, the primary key fields are disabled when the users wants to add a new record as well (which is implemented using the startEditingNew() method).

    Is there a way to disable the primary key fields only in displaying the search results, thus disallowing the user from updating these fields for existing records, but allowing him to create new records with new primary key values?

    Thanks in advance.

    - Shad -

    #2
    Override listgrid.canEditCell() to get the behavior you want.

    Comment


      #3
      Editing Grid Cells

      Hi Isomorphic,

      I could not find such a method. Is that called on the listgrid?

      Comment


        #4
        ListGrid.canEditCell.

        Comment

        Working...
        X