1. #1
    Sencha User
    Join Date
    May 2010
    Posts
    171
    Vote Rating
    1
    Dmoney is on a distinguished road

      0  

    Default How to define id of widget?

    How to define id of widget?


    Im extending the comboBox like this:

    Code:
    Ext.define('AM.view.formPanel.regionCombo', {    extend: 'Ext.form.ComboBox',
        alias: 'widget.regionCombo',
        store: 'regionCombo',
        emptyText: 'Select a Region',
        fieldLabel: 'Region',
        valueField: 'regionID',
        displayField: 'regionName',
        mode: 'remote',
        autoSelect: false,
        listConfig: {
            loadingText: 'Searching...',
            emptyText: 'No matches found.',
            getInnerTpl: function ()
            {
                return '<div class="search-item" padding: 4px;">{prefix}  <b>{regionName}</b></div>';
    
    
            }
    
    
        }
    
    
    
    
    
    
    });

    and then in my form I just use

    {
    id:'regionID'
    xtype:'regionCombo'
    }

    which works except that it does not retain the id "regionID" it creates its own. I need to be able to specify the id because I have a grid that I'm binding to the form.

  2. #2
    Sencha User
    Join Date
    May 2010
    Posts
    171
    Vote Rating
    1
    Dmoney is on a distinguished road

      0  

    Default


    I'm still having a problem with this, it's really strange. when a record is clicked in my grid I load it into the form. the form includes a combo box which does show the selection properly for the record.

    however if I change the selection in the combo and submit the form the value changes to 0 not what the new selection was.

    If I click on a record that does not have a value already for the drop down. and then make a selection in the drop down and submit the change, the record in the grid gets flagged as a change but the change is not posted to the server unless I change another field as well. I can click from one record to the other and see that the store has been updated but it does not know to post the change to the server.

    But then if I change another field as well and submit, it posts to the server but the combo value is posted as 0 again.

    Anyone have any idea what would cause this behaviour?

Tags for this Thread

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