1. #41
    Sencha User
    Join Date
    Jun 2008
    Posts
    36
    Vote Rating
    0
    Psychokrameur is on a distinguished road

      0  

    Default


    Hi,

    You're extension was really great. I'm happy that you still work on it.

    However, I notice some problem. Try to add an element, remove it, add again.
    The available selection grows... but with duplicate items.

    The link to the demo doesn't work.

    Finally, I agree with galdaka suggestion and could be good to have a reset function which remove boxes (caption and on the store) and free-element.

    Even if you don't want to add this functionnality, could explain me how to get and to remove the RawValue properly.

  2. #42
    Ext User provagino's Avatar
    Join Date
    Jul 2007
    Posts
    31
    Vote Rating
    0
    provagino is on a distinguished road

      0  

    Default


    Replace:

    onLnkClick : function(e){
    e.stopEvent();
    this.fireEvent('remove', this);
    this.dispose();
    },


    Whit:


    onLnkClick : function(e){
    e.stopEvent();
    this.dispose();
    },

  3. #43
    Sencha User galdaka's Avatar
    Join Date
    Mar 2007
    Location
    Spain
    Posts
    1,166
    Vote Rating
    -1
    galdaka is an unknown quantity at this point

      0  

    Default


    Quote Originally Posted by zilionis View Post
    Heh i made too few weeks ago, already posted here http://extjs.com/forum/showthread.ph...light=facebook
    Not work in IE.

    Thanks in advance,

    P.D: Is posible enter "free values"?

  4. #44
    Sencha User
    Join Date
    Aug 2008
    Posts
    19
    Vote Rating
    0
    irina is on a distinguished road

      0  

    Question How to resolve an item when a focus is lost?

    How to resolve an item when a focus is lost?


    Hi,
    I would like to resolve an item when I type it and then move cursor to the different part of the product (lost focus). I tried to use "onBlur" method, which works fine almost in all cases. But it also executed when a list is shown and I select any item. So when I select an item, "onBlur" is first, then "onSelect". That causes two items are shown: the partially typed and the selected one. The question how can I distinguish this sort of losing focus from others.
    Thanks a lot,
    Irina

  5. #45
    Ext JS Premium Member
    Join Date
    May 2008
    Posts
    528
    Vote Rating
    0
    Eric24 is on a distinguished road

      0  

    Default


    Very nice work indeed!

    I think I may have found a bug in the latest release: After using addItem(), getValue() does not return it (only items added through the UI or setValues), but calling getValues() on the parent form returns everything, including the addItem() items. I'm not sure why...

    (update)
    Hmmm. It gets worse. After deleting items through the UI, they no longer appear in getValue() as expected, but they remain in getValues(). Still puzzled...

    One other observation: The JS object returned for the BoxSelect field always contains an extra blank value.

  6. #46
    Sencha User
    Join Date
    Jun 2008
    Posts
    36
    Vote Rating
    0
    Psychokrameur is on a distinguished road

      0  

    Default


    Thanks provagino but it doesn't seems to work.

    Anybody have an idea to combine "free-value" and pre-defined values (see galdaka post, previous page) ?

  7. #47
    Sencha User
    Join Date
    Jul 2007
    Posts
    11
    Vote Rating
    0
    suaveant is on a distinguished road

      0  

    Default Bug in setValue

    Bug in setValue


    setValue uses store's find function, which (strangely) has no way to match an exact term except if you pass it a RegExp...
    Code:
    this.store.find(this.valueField, item.trim())
    I had numeric values 59 and 593, and when the data was set, 59 was matching 593 because of this.

    Here is a simple fix
    Code:
    this.store.find(this.valueField, new RegExp('^'+item.trim()+'$'));

  8. #48
    Ext User
    Join Date
    Aug 2008
    Posts
    28
    Vote Rating
    0
    patrosmania is on a distinguished road

      0  

    Default want to extend the select event

    want to extend the select event


    Hi
    A very useful and great extension for Extjs.
    I have a question related to the select event.
    I want to create two instances of this class, but i want them to behave different when an item is selected and not erase the code in the Ext.ux.BoxSelect class. In other words, i want to extend the response for the select event.
    How can i do this?
    Thanks in advance

  9. #49
    Ext User crxtech's Avatar
    Join Date
    Nov 2007
    Location
    Baltimore, MD
    Posts
    87
    Vote Rating
    0
    crxtech is on a distinguished road

      0  

    Default Bug if you set allowBlank:false

    Bug if you set allowBlank:false


    If you set allowBlank:false, as soon as you remove an item it sets the field to invalid, even if there are still others items.


    PHP Code:
    var emailTo = new Ext.ux.BoxSelect({
        
    fieldLabel'To',
        
    labelStyle'font-weight:bold; width:30;',
        
    resizabletrue,
        
    name'to[]',
        
    anchor:'95%',
        
    storeemailDS,
        
    mode'local',
        
    displayField'userName',
        
    displayFieldTpl'{userName} ({email})',
        
    valueField'email',
        
    addUniqueValuesfalse,
        
    allowBlank:false
    }); 
    After more testing it seems that if you add allowBlank:false, it will always be invalid on blur, regardless of items selected.

  10. #50
    Ext User crxtech's Avatar
    Join Date
    Nov 2007
    Location
    Baltimore, MD
    Posts
    87
    Vote Rating
    0
    crxtech is on a distinguished road

      0  

    Default


    It seems that once you add an item, it gets submitted, even if you remove it. I added 3 items, then removed 2 of them. getValue(), shows only one item now, but all three still get submitted. This happens with my code in the post above and with the included example if you add a submit button.

    Any ideas?

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