Announcement

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

    Disabling the cell in a list grid

    How do we disable a cell in the list grid when the record is been edited and value of one cell in a edited record is changed ?

    example:

    We have three fields defined in the datasource for the listgrid.

    a. operator - possible values: Between, At, Before and After
    b. startDate
    c. EndDate

    We need to disable End date cell if user selects operator other than 'Between'.

    #2
    Override canEditCell to provide custom logic for when cells are editable. See the docs for that method for details.

    Comment


      #3
      We are already using this method but it works only when record enters in edit mode for the FIRST TIME but if user changes value of operator comboBox then it doesn't fire again.

      Comment


        #4
        Right - the solution to that problem is in the docs for canEditCell.

        If you change the editability of a cell on the fly, for example, during editorExit on another cell, call refreshCell() to show or hide the editor

        Comment


          #5
          Thanks It worked ...

          Comment

          Working...
          X