1. #41
    Ext JS Premium Member
    Join Date
    Mar 2008
    Location
    Phoenix, AZ
    Posts
    627
    Vote Rating
    10
    zombeerose will become famous soon enough zombeerose will become famous soon enough

      0  

    Default


    Can you add requires configs for dynamic loading (Ext.Loader)?

    At first glance,
    Code:
    requires: ['Ext.selection.Model','Ext.data.Store']

  2. #42
    Ext JS Premium Member
    Join Date
    Mar 2008
    Location
    Phoenix, AZ
    Posts
    627
    Vote Rating
    10
    zombeerose will become famous soon enough zombeerose will become famous soon enough

      0  

    Default


    Heads up - BoxSelect is not working with Ext 4.0.5

    "me.triggerWrap is null"

  3. #43
    Ext JS Premium Member
    Join Date
    Nov 2008
    Posts
    278
    Vote Rating
    1
    wki01 is on a distinguished road

      0  

    Default


    Confirmed. It does not work with 4.05.

    Also a bug:
    If readOnly should not be able to delete values​​.

    thanks

  4. #44
    Sencha User
    Join Date
    Jul 2011
    Posts
    3
    Vote Rating
    0
    under_dog is on a distinguished road

      0  

    Default


    Thanks a ton kleins and kveeiv for a wonderful implementation of Boxselect...

    In my project I required Boxselect to contains atleast 50k values from store and it should also give suggestion on user's key press(as it happens in facebook),so I modified kleins's boxselect code as per my requirement.
    I am posting my version of boxselect in case anyone has the same requirement as I have...I will also post a new version of boxselect which will be faster than this one in next few days.....
    P.S: I am a fresher and working on ExtJs only from last 15 days , I will definitely welcome any suggestion to improve my code...
    Attached Files
    "I don't believe that life is supposed to make you feel good, or make you feel miserable either. Life is just supposed to make you feel."

  5. #45
    Sencha Premium Member
    Join Date
    Mar 2008
    Posts
    92
    Vote Rating
    1
    kveeiv is on a distinguished road

      0  

    Default 1.1 Released

    1.1 Released


    1.1 has been released and the first post has been updated. Please see that post for a more complete list of updates. Many thanks go out to the many testing and coding contributions that have been made so far for this extension.

    Quote Originally Posted by zombeerose View Post
    One more request - can you fire events when adding/removing items to the combo? It would be nice if the record involved was included as a param.
    The standard 'change' and 'select' events that are fired by a combobox can be observed. I have modified some of the value tracking so that the change events now pass the values as defined by the valueField, and the select event passes the current values as records. These happen for any change of the field value - rather than ComboBox's behavior of select being fired only on "list selection". I've added an example to the examples page for the event handling and also programmatic value management.

    Quote Originally Posted by navvn View Post
    lets say someone is clicking on a boxselect field, typing an email address and doesnt confirm it by enter. Than he move to the second field (by mouse click or TA. Is it possible to make a written value a box after you move to another field?
    This has been added as functionality with the createNewOnBlur config option. Please note the interaction of this configuration option with the autoSelect and selectOnTab options of the base ComboBox control.

    Quote Originally Posted by navvn View Post
    Also how to add an value to boxselect?
    addValue and removeValue have been added for discrete programmatic management of the field value. These functions take the same mixed value representation as setValue, please see the examples page for a complete description of those.

    Quote Originally Posted by zombeerose View Post
    Can you add requires configs for dynamic loading (Ext.Loader)?

    At first glance,
    Code:
    requires: ['Ext.selection.Model','Ext.data.Store']
    Done. I'm not sure how these interact with the requires definitions of the parent classes, but if it automatically pulls those in then I think this is the extent of those. If you find any others, please let me know.

    Quote Originally Posted by zombeerose View Post
    Heads up - BoxSelect is not working with Ext 4.0.5
    Fixed. Ext.form.field.Trigger had modified its field template to track the trigger by id, this change had to be made to the boxselect field template as well. This is still backwards compatible with 4.0.2a for those using the public release.

    Quote Originally Posted by wki01 View Post
    If readOnly should not be able to delete values​​.
    Fixed, also fixed for disabled state.

    Quote Originally Posted by under_dog View Post
    In my project I required Boxselect to contains atleast 50k values from store and it should also give suggestion on user's key press(as it happens in facebook),so I modified kleins's boxselect code as per my requirement.
    One of my use cases is a list of potentially hundreds of thousands of items which also uses the typeAhead configuration to provide the suggestion type of functionality. I see that you were using the other implementation, have you tried this one to accomplish your goals? This one is also faster than the other one when you are dealing with unusually large sets of data/selections, though any contributions towards improving this further are greatly welcomed.

  6. #46
    Sencha User
    Join Date
    Jun 2011
    Posts
    2
    Vote Rating
    0
    NatVik is on a distinguished road

      0  

    Default setValue and queryMode: remote

    setValue and queryMode: remote


    hi, please help me, i want to set values before box will be render(queryMode: remote). When i use setValue(1), it works but not
    stably in firefox(good in explorer). And when i use setValue(1, 2), or setValue('1, 2') or init value: '1, 2' it does not work. My code:
    Ext.create('Ext.ux.form.field.BoxSelect', {
    id : comboId,
    renderTo : renderTo,
    multiSelect : true,
    displayField : 'name',
    valueField : 'id',
    //value: '1, 2',
    width : 300,
    store : new Ext.data.JsonStore({
    remoteFilter : true,
    model : 'dictionaryModel',
    proxy : {
    type : 'ajax',
    url : url,
    method : 'GET',
    defaultHeaders : {
    'Accept' : 'application/json'
    },
    reader : new Ext.data.JsonReader({
    type : 'json',
    root : 'dictionaryRoot'
    })
    }
    }),
    minChars : 2,
    listeners : {
    render : function() {
    this.store.load({
    params: { query: '' }});
    this.setValue('1, 2');
    },

  7. #47
    Sencha User
    Join Date
    Nov 2007
    Posts
    31
    Vote Rating
    0
    zacware is on a distinguished road

      0  

    Default


    This is an excellent plugin. Thanks so much for making it. You should setup a donate paypal link on github for the project.

    I noticed 2 issues that may or may not be bugs

    #1 When typing in a state in the examples, like "Conn" for conneticut, and then hitting return, Conneticut is entered into the field but then the text "Conn" is still after it. If a match is found and the return key is pressed, the typed text showed go away (?)

    #2 I tried using a store with a proxy to get data remotely and I load that using the .load() command on the store when I first create my form that the box select field is in. But if I try to use local query mode when I try to select an item from the list nothing shows up in the field after I click on a selection. If I switch to remote I am sent a query string on the server side which I can use to filter the list but I would prefer to let the store search the store that is already loaded rather than having to go to the server.

  8. #48
    Ext JS Premium Member Smalltalker's Avatar
    Join Date
    Aug 2009
    Posts
    6
    Vote Rating
    0
    Smalltalker is on a distinguished road

      0  

    Default


    There is a strange behavior in the control.

    When you select an item, the top of the control moves up

    This has happened to someone else?

    I attach a video (.zip)

    boxselect move up.zip

    thanks

    Claudio

  9. #49
    Sencha User
    Join Date
    Jun 2009
    Posts
    1
    Vote Rating
    0
    yuuzai is on a distinguished road

      0  

    Default


    This is is a nice plugin and thanks for developing and maintaining it. I do have a request though. Prolly you could support a dual-trigger wherein the other button selects/deselects all elements.

  10. #50
    Sencha User
    Join Date
    Sep 2009
    Posts
    85
    Vote Rating
    -1
    raz0r1 is an unknown quantity at this point

      0  

    Default


    "Bug":
    Please Change Line 1066 to
    Code:
    me.fireEvent('autosize', me, newHeight);
    so it fits ComboBox events a little more.

    thanks.

Thread Participants: 93

  1. scottw (1 Post)
  2. mysticav (2 Posts)
  3. JorisA (5 Posts)
  4. bobmanc (2 Posts)
  5. notjoshing (4 Posts)
  6. grgur (1 Post)
  7. ValterBorges (2 Posts)
  8. WebProgrammer (1 Post)
  9. Schlurcher (1 Post)
  10. zacware (2 Posts)
  11. ngd (8 Posts)
  12. radtad (2 Posts)
  13. zombeerose (13 Posts)
  14. nicholasnet (1 Post)
  15. themightychris (2 Posts)
  16. abraxxa (8 Posts)
  17. ttbgwt (1 Post)
  18. Psychokrameur (2 Posts)
  19. commanche (1 Post)
  20. ernst96 (2 Posts)
  21. omarc (1 Post)
  22. qooleot (1 Post)
  23. foxmarco (1 Post)
  24. christophe.geiser (1 Post)
  25. wki01 (1 Post)
  26. purnama (1 Post)
  27. mediacept (1 Post)
  28. bareflix (2 Posts)
  29. User 0815 (1 Post)
  30. yuuzai (1 Post)
  31. talha06 (1 Post)
  32. xjpmauricio (1 Post)
  33. scishop (2 Posts)
  34. Smalltalker (1 Post)
  35. hazimdikenli (2 Posts)
  36. raz0r1 (1 Post)
  37. McQuack_82 (1 Post)
  38. elilindner (1 Post)
  39. hexawing (1 Post)
  40. maneljn (3 Posts)
  41. Tim Toady (2 Posts)
  42. alonweiss (1 Post)
  43. ubong (1 Post)
  44. salarmehr (5 Posts)
  45. koblass (1 Post)
  46. Karthikeyan.rajmohan (2 Posts)
  47. Reimius (1 Post)
  48. CSC-Germany (1 Post)
  49. sankarbaluz (2 Posts)
  50. alaley (2 Posts)
  51. navvn (2 Posts)
  52. danCTS (2 Posts)
  53. bentoo42 (1 Post)
  54. jmaia (2 Posts)
  55. maslofer (1 Post)
  56. sunaku (3 Posts)
  57. mrinsan (1 Post)
  58. yumaa (1 Post)
  59. rsqw (2 Posts)
  60. mahesh21688 (3 Posts)
  61. derditze (3 Posts)
  62. kunalshah6363 (1 Post)
  63. NatVik (1 Post)
  64. softwareguy (1 Post)
  65. alicexyl (7 Posts)
  66. under_dog (1 Post)
  67. tommytob (2 Posts)
  68. charlie17 (5 Posts)
  69. nathanrice (1 Post)
  70. srarnold (3 Posts)
  71. ettavolt (1 Post)
  72. qnens (1 Post)
  73. nikadod (3 Posts)
  74. PanchiKB (1 Post)
  75. Hooped (1 Post)
  76. dedoz (3 Posts)
  77. metas (1 Post)
  78. lindemann-medien (2 Posts)
  79. nathanmelis (1 Post)
  80. cyborat (1 Post)
  81. Forn (1 Post)
  82. gaurav.rehan (1 Post)
  83. Avman2119 (3 Posts)
  84. zzhouag (5 Posts)
  85. andreas-spindler (3 Posts)
  86. Alvaro L (1 Post)
  87. hown (1 Post)
  88. edson.hh (2 Posts)
  89. QuantumScripting (1 Post)
  90. chungns (1 Post)
  91. Delphine (1 Post)
  92. folivieri (1 Post)
  93. Lpsmash (1 Post)

Tags for this Thread