Grid - Disable Editor Based upon value

  1. #1

    Grid - Disable Editor Based upon value

    Is there a way to disable an editor based upon the value in the store?

    so - if record value = 'N/A' - editor is disabled
  2. #2

    RE: Grid - Disable Editor Based upon value

    I was also looking for similar Functionality, Disabling Editor for Specific Cell of GridPanel.


    Is there any way to accomplish this ?
  3. #3

    RE: Grid - Disable Editor Based upon value

    Hi,

    You need use BeforeEdit event of grid and disable editing when it requires


    beforeedit : ( Object e )
    Fires before cell editing is triggered. The edit event object has the following properties
    grid - This grid
    record - The record being edited
    field - The field name being edited
    value - The value for the field being edited.
    row - The grid row index
    column - The grid column index
    cancel - Set this to true to cancel the edit or return false from your handler.
    Listeners will be called with the following arguments:
    e : Object
    An edit event (see above for description)
  4. #4

    RE: Grid - Disable Editor Based upon value

    Hi,

    I would like to disable a column in the grid in client side. Please, advice how to do it?. Is that ok to disable the editor so it can't be edited?.

    Thanks
  5. #5

    RE: Grid - Disable Editor Based upon value

    Just take the control ID of the editor and either hide/show or enable/disable

Similar Threads

  1. Replies: 5
    Last Post: Dec 26, 2011, 5:39 AM
  2. Replies: 0
    Last Post: Sep 21, 2011, 11:26 PM
  3. [CLOSED] grid selection based on grouping
    By alexp in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Jun 23, 2010, 2:11 PM
  4. Replies: 0
    Last Post: Sep 11, 2009, 3:34 PM
  5. Replies: 2
    Last Post: May 04, 2009, 4:52 AM

Posting Permissions