[CLOSED] [2.0] ComboBox store

  1. #1

    [CLOSED] [2.0] ComboBox store

    Hello,

    If you have a ComboBox like the following, that is empty on initialization, and then run a function to add an entry to the store, the ComboBox will not show the added entry until a second one is added:

                    b.Add(Html.X().ComboBox()
                        .ID("drpField1")
                        .AllowBlank(false)
                        .AnchorHorizontal("100%")
                        .DisplayField("Text")
                        .Editable(false)
                        .FieldLabel("Field 1")
                        .ForceSelection(true)
                        .SimpleSubmit(true)
                        .TypeAhead(false)
                        .ValueField("Value")
                        .Store(store =>
                            store.Add(Html.X().Store()
                                .Model(model =>
                                    model.Add(Html.X().Model()
                                        .Fields(fields =>
                                        {
                                            fields.Add(Html.X().ModelField()
                                                .Name("Text")
                                            );
    
    
                                            fields.Add(Html.X().ModelField()
                                                .Name("Value")
                                            );
                                        } )
                                    )
                                )
                            )
                        )
                    );
    Use the following on a button click listener:
    var store = App.drpField1.getStore();
    store.add( {
        Text: '1',
        Value: '1'
    } );
    Works after you click the button again -- it will show 2 entries, but it will never just show 1

    Cheers,
    Timothy
    Last edited by Daniil; Jun 19, 2012 at 12:46 AM. Reason: [CLOSED]
  2. #2
    Hi,

    Thanks for the report. I have re-reported it to Sencha.
    http://www.sencha.com/forum/showthre...742#post835742
  3. #3
    Quote Originally Posted by Daniil View Post
    Hi,

    Thanks for the report. I have re-reported it to Sencha.
    http://www.sencha.com/forum/showthre...742#post835742
    Thanks Daniil!
  4. #4
    There was the update.
    http://www.sencha.com/forum/showthre...l=1#post835813

    Please just set up
    QueryMode="local"
    for the ComboBox.
  5. #5
    Confirmed, thanks!

Similar Threads

  1. Replies: 2
    Last Post: Sep 15, 2014, 2:58 PM
  2. [CLOSED] ComboBox / Store / DataSource : Store.DataSource is NULL
    By wagger in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Apr 24, 2011, 10:09 AM
  3. [CLOSED] [1.0] ComboBox and Store
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Feb 11, 2010, 6:14 AM
  4. [CLOSED] Store and ComboBox
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: May 10, 2009, 8:08 PM
  5. [CLOSED] ComboBox with no store
    By Moreno in forum 1.x Help
    Replies: 2
    Last Post: Dec 23, 2008, 5:29 PM

Posting Permissions