1. #1
    Sencha User tjstuart's Avatar
    Join Date
    May 2007
    Location
    Sydney, Australia
    Posts
    310
    Vote Rating
    0
    tjstuart is on a distinguished road

      0  

    Default [Ver 1.1] Ext.ux.Multiselect

    [Ver 1.1] Ext.ux.Multiselect


    Fixed a few bugs etc ...

    Get it from here:- http://extjs.com/learn/Extension:Multiselect

    See what's fixed and what's proposed for the future here:- http://www.figtreesystems.com/ext/ex...ltiselect.html

  2. #2
    Ext User matjaz's Avatar
    Join Date
    Apr 2007
    Location
    Slovenia
    Posts
    126
    Vote Rating
    0
    matjaz is on a distinguished road

      0  

    Default


    Nice !

    One thing I noticed.
    If I click setValue, One, two, three are selected. Then if I click on this selected values it gets unselected, BUT other twos stays selected.
    So I get an idea for selecting multiple values just by clicking on it and for deselection click on it again. So there is no Ctrl magic needed.
    What do you think ?
    Regards,
    M.

  3. #3
    Ext User
    Join Date
    Aug 2007
    Posts
    96
    Vote Rating
    0
    vibez is on a distinguished road

      0  

    Default


    Thanks for the removing the internal store, it works just fine with my jsonstore now.

    Couple of event handler bugs:

    I have event handler code like below

    Code:
    combo.on("select", function(){
    		multiselect.reset();
    		multiselect.setDisabled(true);
    });
    BUG 1: It seems like reset() is not working. The initial loaded values are still displayed in the combobox.

    BUG 2: options are still selectable (although they are greyed out) when envoking setDisabled(true)

  4. #4
    Ext User
    Join Date
    Aug 2007
    Posts
    96
    Vote Rating
    0
    vibez is on a distinguished road

      0  

    Default


    Could you tell me what event handlers we have available in this extension please?

    I need to fire an even whenever a list item is select.

    Currently the only open I have at the moment is 'dblclick'

    PHP Code:
        multiselect.on("dblclick", function(){
            
    multiselect2.enable(true);
    }); 
    Indeally I want to be able to just use either 'click' or 'selected' like so

    PHP Code:
        multiselect.on("selected", function(){
            
    multiselect2.enable(true);
    }); 
    But neither are working. Could you advise on what event handler I could use please?

  5. #5
    Sencha User tjstuart's Avatar
    Join Date
    May 2007
    Location
    Sydney, Australia
    Posts
    310
    Vote Rating
    0
    tjstuart is on a distinguished road

      0  

    Default


    Added/Fixed the following in v1.1 ...

    - Enabled/disabled now works correctly
    - Reset now properly clears selections
    - Click and Change events added

    Page here:- http://www.figtreesystems.com/ext/ex...ltiselect.html

    Download here:- http://www.figtreesystems.com/ext/ex...select-1.1.zip

    Cheers

  6. #6
    Ext User
    Join Date
    Aug 2007
    Posts
    96
    Vote Rating
    0
    vibez is on a distinguished road

      0  

    Default


    Thanks again bro! Click event handling works great now

    Back with a bug though

    disabled:true; doesnt seem to work in IE

    PHP Code:
            var multiselect = new Ext.ux.Multiselect({
             
    name'multiselect',
            
    store:store5,
             
    valueField'CostCentre',
             
    displayField'CostCentre',
             
    emptyText:'',
             
    fieldLabel'Cost Centre',
             
    disabled:true,
             
    width165,
             
    height150
        
    }); 
    although multiselect.setDisabled(true); works just fine.

  7. #7
    Sencha User tjstuart's Avatar
    Join Date
    May 2007
    Location
    Sydney, Australia
    Posts
    310
    Vote Rating
    0
    tjstuart is on a distinguished road

      0  

    Default


    Vibez ... I was unable to replicate the 'disabled:true' bug you mentioned in IE6 or IE7

  8. #8
    Ext User
    Join Date
    Aug 2007
    Posts
    96
    Vote Rating
    0
    vibez is on a distinguished road

      0  

    Default


    Quote Originally Posted by tjstuart View Post
    Vibez ... I was unable to replicate the 'disabled:true' bug you mentioned in IE6 or IE7
    Demo Here

    The last two multiselection boxes are set, disabled true.

    The attachment here shows how I see them in IE compared to Firefox. As you can see the last two boxes in firefox are greyed out correctly, but none of the multiselect boxes are greyed out in IE
    Attached Images

  9. #9
    Sencha User tjstuart's Avatar
    Join Date
    May 2007
    Location
    Sydney, Australia
    Posts
    310
    Vote Rating
    0
    tjstuart is on a distinguished road

      0  

    Default


    Vibez,

    They are in fact disabled in both IE6 & IE7. It's just a little harder to see. If you put some data in your multiselects it will become more evident.

    Setting 'disabled' via config and using 'setDisabled' are ultimately handled by Ext.Component and all this does is set the HTML 'disabled' attribute for the element in question (in Multiselect's case the DIV inside the widget's container) and adds "x-item-disabled" to its class.

    Cheers

  10. #10
    Ext User
    Join Date
    Aug 2007
    Posts
    96
    Vote Rating
    0
    vibez is on a distinguished road

      0  

    Default


    I'm not sure I follow you. Are you saying you cannot see the two boxes clearly greyed out in firefox, but not greyed out in IE?

    setDisabled does grey they out in IE, but disabled:true does not.

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