1. #1
    Ext User
    Join Date
    Feb 2008
    Posts
    3
    Vote Rating
    0
    naga_cit is on a distinguished road

      0  

    Default Editable Combo box usage problem in Editable Grid Example

    Editable Combo box usage problem in Editable Grid Example


    Hi All,

    I am playing with the editable grid example,
    http://extjs.com/deploy/dev/examples...edit-grid.html.

    I have couple of questions on that,

    1. How do I get editable combo box (column: light) to work in this example, currently it accepts the values only from the drop down list. I would like to have user to enter his own option as well in the editable combo box. Is it possible?

    2. Is there a way I can set different editor for same coulum in different rows, based on a record.
    for example for 'light' column, I want to put combo editor on record 1 and text editor on record 2, something in those lines?

    Thanks for your time

  2. #2
    Sencha User catacaustic's Avatar
    Join Date
    Jul 2007
    Location
    "A Land Down Under"
    Posts
    618
    Vote Rating
    1
    catacaustic is on a distinguished road

      0  

    Default


    1. All you need to do is edit the config of the combo box in the editor of that column. You should remove the 'editable: false' and replace with 'editable: true', and you should probably also make sure that it's 'forceSelection: false' as well.

    2. There isn't a built-in way to do it, but I do remember this question has come up before so there is some info on the forum about this that you should be able to find with a bit of searching.
    'Once again, fortune vomits on my eiderdown'
    - Edmund Blackadder

  3. #3
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    89
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    2. You'll have to create your own getCellEditor(colIndex, rowIndex) function that returns the appropriate editor for the cell (the default implementation returns the editor for the column from the columnmodel).

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi