1. #1
    Ext JS Premium Member
    Join Date
    Nov 2009
    Location
    St Louis,MO
    Posts
    267
    Vote Rating
    18
    James Goddard will become famous soon enough James Goddard will become famous soon enough

      0  

    Default Cell Editor question (Grid)

    Cell Editor question (Grid)


    Is it possible to have a combo box cell editor where the options in the combo box change depending on the row selected?

  2. #2
    jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,361
    Vote Rating
    81
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    I imagine that you can load the combo store based on the row selected. Setup a beforeedit event listener to do so. The beforeedit event fires handlers, passing an event object that contains the following:

    Code:
    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.

  3. #3
    Ext JS Premium Member
    Join Date
    Nov 2009
    Location
    St Louis,MO
    Posts
    267
    Vote Rating
    18
    James Goddard will become famous soon enough James Goddard will become famous soon enough

      0  

    Default


    I don't think beforeedit is firing but I was able to do it by overloading startEdit.

Similar Threads

  1. Grid editor intercept cell event and hide another cell
    By ddxt in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 3 Nov 2009, 3:59 AM
  2. set a value on an editor grid's cell
    By len in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 13 Mar 2009, 1:41 AM
  3. Different Editor for each cell within a Grid
    By Boon in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 18 Aug 2008, 10:10 AM
  4. Quicky: editor grid cell editor focus
    By almerelc in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 28 Apr 2008, 9:09 PM
  5. why this space in editor grid to editor cell???
    By genius551v in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 24 Feb 2008, 1:45 PM

Thread Participants: 1