Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: Remote combobox in ext js grid v 4.2 (single/ multiple selection)

  1. #1
    Sencha User
    Join Date
    Sep 2014
    Posts
    52
    Answers
    3

    Default Remote combobox in ext js grid v 4.2 (single/ multiple selection)

    Hello everyone,

    I just want to ask if is possible or if someone found a solution for a remote combo box that is rendered in Grid , and also can support multi selection.

    I have a really hard time to find a solution . And nothing comes in to my mind.

    Thanks .

  2. #2
    Sencha User
    Join Date
    Nov 2014
    Posts
    3,120
    Answers
    446

    Default

    Hi--

    You should be able to do this as a cell editor. Here's an example in the docs:
    http://docs.sencha.com/extjs/4.2.1/#.../#cell-editing

    (it's not a remote combobox, but the principle would be the same)

    Thanks!
    Joel

  3. #3
    Sencha User
    Join Date
    Sep 2014
    Posts
    52
    Answers
    3

    Default

    Well , i saw the example but , i have a lots of problems like , my values for the grid are coming something like:

    col10{
    title:
    value:
    }
    and on the column i have something like the example you gave me :


    {
    header: 'Example',
    dataIndex: 'col10',
    width: 130,
    editor: {
    xtype: 'combobox',
    requestUrl: 'url'
    },
    xtype: 'columntemplate',
    tpl: {col.10.title}
    }

    But when i`m trying to click and edit i have problems like : in the combobox [Object Object];

  4. #4
    Sencha User
    Join Date
    Nov 2014
    Posts
    3,120
    Answers
    446

    Default

    Hi--

    Can you share an example that demonstrates the issue: https://fiddle.sencha.com

    Thanks!
    Joel

  5. #5
    Sencha User
    Join Date
    Sep 2014
    Posts
    52
    Answers
    3

    Default

    Well now i'm trying to make one in fiddle but will take some time .

  6. #6
    Sencha User
    Join Date
    Sep 2014
    Posts
    52
    Answers
    3

    Default

    Hello-

    I managed to make something

    https://fiddle.sencha.com/#fiddle/tdh

  7. #7
    Sencha User
    Join Date
    Sep 2014
    Posts
    52
    Answers
    3

    Default

    Please if someone have an ideea how to handle this , i`ll be very grateful .

  8. #8

    Join Date
    Dec 2013
    Location
    Italy
    Posts
    88
    Answers
    9

    Default

    The easiest way to work with extjs4 cell/row editing is to use the same "id" as column data and editor combo value field.
    If you can't edit your JSON you could create a custom "emailValue" field in your model. Here is the updated fiddle:

    https://fiddle.sencha.com/#fiddle/ter

  9. #9
    Sencha User
    Join Date
    Sep 2014
    Posts
    52
    Answers
    3

    Default

    I like how it works but do you think is possible when you have a remote combobox ?

  10. #10

    Join Date
    Dec 2013
    Location
    Italy
    Posts
    88
    Answers
    9

    Default

    Quote Originally Posted by shakerkk View Post
    I like how it works but do you think is possible when you have a remote combobox ?
    Oh yes! It should works with remote store too.

Page 1 of 2 12 LastLast

Similar Threads

  1. Multiple selected strange behavior in a single selection grid
    By anasande in forum Ext GWT: Discussion
    Replies: 6
    Last Post: 29 Dec 2010, 7:54 AM
  2. Multiple selected strange behavior in a single selection grid
    By anasande in forum Ext GWT: Discussion
    Replies: 4
    Last Post: 29 Dec 2010, 7:11 AM
  3. XML Selection with Multiple Elements in a single record
    By stedav in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 27 May 2010, 1:11 AM
  4. Replies: 3
    Last Post: 28 May 2009, 5:24 PM
  5. Grid - Multiple Selection on single click (without CTRL/CMD)
    By TrickOfTheMind in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 5 Apr 2009, 8:30 AM

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
  •