Results 1 to 10 of 10

Thread: combobox??????????

  1. #1
    Sencha User
    Join Date
    Jan 2010
    Posts
    5
    Vote Rating
    0
      0  

    Default combobox??????????

    GridPanel?????????????????ComboBox?????

    ???????ComboBox???????
    ??????????????ComboBox??????????????


    ComboBox?renderer????????ComboBox?Store???????
    ???????????????????????????????????


    ?????????????????????????????????

  2. #2
    Sencha User mashiki's Avatar
    Join Date
    Oct 2007
    Location
    Japan
    Posts
    139
    Vote Rating
    0
      0  

    Default

    ????????UI???????????????????
    ?????????????????????????????
    ??????????????????

    > ???????ComboBox???????
    > ??????????????ComboBox??????????????
    ???????????????????ComboBox???textfield???????
    ??????????????
    ????????Combobox?????????????????

    > ComboBox?renderer????????ComboBox?Store???????
    > ???????????????????????????????????
    ComboBox?renderer?????????
    Column?renderer????????????????????

    Grid?edit???????????????????????
    Store???????????????????????????

    ????Store???????????????????????row???????????
    ????????????????????????

  3. #3
    Sencha User
    Join Date
    Jan 2010
    Posts
    5
    Vote Rating
    0
      0  

    Default

    ?????????????????????????


    ????????
    var data = [ {animal:"?"},{animal:"?"},{animal:"???"}];
    var animalStore = Ext.create('Ext.data.Store',
    {fields: ["animal"], data: {items:data},
    proxy: { type: 'memory', reader: {type: 'json', root: 'items'} }})


    comboAdd = function(value, metaData, record, rowIndex, colIndex, store, view){
    var columns = view.getGridColumns()
    var column = columns[colIndex];
    var editor = column.getEditor()
    if(editor){
    var store = editor.getStore();
    store.add(0, newRecord);
    }
    return value
    }
    Ext.create('Ext.grid.Panel', {
    Grid??????)
    columns: [{
    header:"??"
    },{
    header:"?????",
    renderer:comboAdd,
    field:{
    xtype:"combobox",
    store:animalStore
    }
    }]})


    ??????Grid?ComboBox??????????????ComboBox????????????????


    ???text?????????????
    ??????ComboBox??????????????????text??


    ????????????
    ???????????Grid????
    ?B????????????? ??????????
    ?C????????????? ???????????
    ?D?????????????


    ??????ComboBox????????????????????????????????D??????????????????
    ?????????????????????????????????


    mashiki?
    ??????????????
    ???????????


    >???????????????????ComboBox???textfield???????
    >??????????????>????????Combobox?????????????????
    ????????Combobox????????????????
    Combobox??????????????


    >ComboBox?renderer?????????
    >Column?renderer????????????????????
    ?????Column?renderer?????


    Column?renderer??Column???????????????????????????
    ????????????????????????
    Column?renderer??????????????


    >????Store???????????????????????row???????????
    >????????????????????????
    Store???????????????
    Store????????????????Store????????????????????

  4. #4
    Sencha User
    Join Date
    Mar 2010
    Posts
    34
    Vote Rating
    0
      0  

    Default

    ????????????????????????
    ?????????????


    ???????????????PHP??????????CODE??/CODE???PHP??/PHP?????????
    ????????????????????????????????????

    ?????????????????????????????????????????
    ???????????????????????
    ???????????

    ?????????????????????



    ????????????
    4.X?????????????????????????

  5. #5
    Sencha User mashiki's Avatar
    Join Date
    Oct 2007
    Location
    Japan
    Posts
    139
    Vote Rating
    0
      0  

    Default

    ?????????????????????????????
    ??????????????????????????????????????????????

    ??typo?????????????????????

    skies04 ??????animalStore???????????????????????????????????????renderer????????????????????????

    ?????????UI?????????????
    renderer???????????????????????????????????????????????
    ??renderer???????????edit???????????
    http://jsfiddle.net/mashiki/qPjaZ/

    ?4.1.1????edit???????????????????????????????????

  6. #6
    Sencha User
    Join Date
    Jan 2010
    Posts
    5
    Vote Rating
    0
      0  

    Default

    shobuno?
    ??????????????????Grid???????????????
    ??????????????????????????

    ?????????????????????????????????????????????

    ???????4.0.7???


    mashiki?
    typo?????????????????
    ???????????????????????????

    ????????????????????????????????

    ???????????????????????????
    ?????????animal?????????
    ?????????????????
    ?????????animal?????????????
    ???????????????????????????????????

    ???????????????????????????????????

  7. #7
    Sencha User mashiki's Avatar
    Join Date
    Oct 2007
    Location
    Japan
    Posts
    139
    Vote Rating
    0
      0  

    Default

    ?????
    ????????????????????????????????(chrome???FF?OK)

    ????????????????????Ext JS Community Forums 4.x ? Bugs??????
    ??????????????????????????????????

    ?????????????????????????????????????????
    ?????????????????
    ?????????????????????????????????
    ????????????????????

    ?????????????????????????????????????ExtJS?????????????????????????????combobox?????????????????????????????????????????

  8. #8
    Sencha User
    Join Date
    Jan 2010
    Posts
    5
    Vote Rating
    0
      0  

    Default

    mashiki?

    ExtJS Community Forums 4.x?Bugs?????????

    ?????????????????????????
    ???????????????

    ?????????????????????????????????????

    ????????????????

  9. #9
    Sencha User mashiki's Avatar
    Join Date
    Oct 2007
    Location
    Japan
    Posts
    139
    Vote Rating
    0
      0  

    Default

    ?????????????????????????

    Also, don't forget to use queryMode: 'local' on your locally loaded combobox.

    ?????????
    ??????????????????????????

    http://jsfiddle.net/mashiki/qPjaZ/23/

  10. #10
    Sencha User
    Join Date
    Mar 2016
    Posts
    1
    Vote Rating
    0
      0  

    Default

    thanks for sharing

Posting Permissions

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