Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium Member
    Join Date
    Oct 2009
    Posts
    104
    Vote Rating
    3
    gatherworks is on a distinguished road

      0  

    Default Gridpanel column editor config object

    Gridpanel column editor config object


    Hi,

    I have a grid panel with a row editor. I can set the editor for a column to a 'combobox'. I should be able to specify a config object to provide the data inline for the combobox. However, when I add the config object {xtype:'combobox'...}, the entire string is quoted. Since it is a config object it should not be quoted in this context.

    Thanks!

  2. #2
    Sencha User
    Join Date
    Jun 2011
    Posts
    350
    Vote Rating
    1
    bharatn is on a distinguished road

      0  

    Default


    Hi,

    Make sure the config object can resolve to valid object i.e if you use any references that cannot be evaled the value will be converted to string.

    Here is an code gen from Designer with valid config object

    Code:
    Ext.define('MyApp.view.MyGridPanel', {
        extend: 'Ext.grid.Panel',
    
    
        height: 250,
        width: 400,
        title: 'My Grid Panel',
    
    
        initComponent: function() {
            var me = this;
    
    
            Ext.applyIf(me, {
                columns: [
                    {
                        xtype: 'gridcolumn',
                        dataIndex: 'string',
                        editor: {
                            xtype: 'textfield',
                            allowBlank: false
                        },
                        text: 'String'
                    },
    Bharat Nagwani
    Sencha Designer Development Team

  3. #3
    Sencha Premium Member
    Join Date
    Oct 2009
    Posts
    104
    Vote Rating
    3
    gatherworks is on a distinguished road

      0  

    Default


    Thanks! That did the trick. A typo was resulting in the quoted string.

  4. #4
    Sencha Premium Member
    Join Date
    Oct 2009
    Posts
    104
    Vote Rating
    3
    gatherworks is on a distinguished road

      0  

    Default


    In the hope of helping someone else. This is an example of defining a combobox editor for a gridpanel with Designer:
    Code:
    {
        xtype: 'combobox',
        store: ['home','mobile','fax'],
        queryMode: 'local',
        typeAhead: true,
        triggerAction: 'all',
        forceSelection: true
    }
    Defining a store in any other way cause it to be escaped as a string as explained by a previous response.

Thread Participants: 1

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