Results 1 to 3 of 3

Thread: GXT3 Cell Grid with ComboBox

  1. #1
    Sencha Premium Member
    Join Date
    Jun 2014
    Posts
    6

    Default GXT3 Cell Grid with ComboBox

    Hi,

    I have a editable cell grid with a text column and a Combo Box column.
    Each Combo Box's value store will depend on the text column in the grid. So, the values for each Combo Box should vary.

    I was not able to figure out how to get the combo box reference for each of the cells.

    I was able to get the handle for the grid cell with grid.getView().getCell(row, column), but I could not figure out how to cast the element to ComboBoxCell object.

    Is there any way to get the combo box reference for each of the rows so that I could update the store values? Or is there any way to create a combo box for each cell based om the other column values in the grid?

    Thank you,
    Hari

  2. #2
    Sencha Sr Product Manager
    Join Date
    Jan 2012
    Location
    Arlington, WA
    Posts
    1,178

    Default

    Try using the ComboBox reference that is attached to the grid, each time the row becomes editable, it updates that widget. The same goes for the other fields. Selection logic then can change the ComboBox that is added to the column.

    Does that help or would you like more?

  3. #3
    Sencha Premium Member
    Join Date
    Jun 2014
    Posts
    6

    Default

    It worked. Thank you Bran!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •