1. #371
    Sencha User
    Join Date
    Mar 2010
    Posts
    48
    Vote Rating
    0
    icarey is on a distinguished road

      0  

    Default Resizable not working

    Resizable not working


    I am using extjs version 3.3.1 I would like to use the resizable property but it does not work. I want to have resizable: true. For this to work I have to change in SuperBoxSelect.js resizable : false to resizable : true , it seems this property is ignored when the combobox xtype is superboxselect

    code in SuperBoxSelect.js
    initComponent:function() {
    Ext.apply(this, {
    items : new Ext.util.MixedCollection(false),
    usedRecords : new Ext.util.MixedCollection(false),
    addedRecords : [],
    remoteLookup : [],
    hideTrigger : true,
    grow : false,
    resizable : true,
    multiSelectMode : false,
    preRenderValue : null
    });

    My code:
    {
    columnWidth:.28,
    layout: 'form',
    items:
    [
    {
    xtype:'superboxselect',
    fieldLabel: 'Auth',
    name: 'drugauth',
    mode: 'local',
    typeAhead: true,
    forceSelection: true,
    editable: false,
    triggerAction : 'all',
    store: drugauthstore,
    displayField:'DrugAuthority',
    valueField: 'DrugAuthorityID',
    hiddenName: 'drugauthID[]',
    resizable: true,
    navigateItemsWithTab: false,
    removeValuesFromStore: false,
    preventDuplicates: false,
    stackItems: true,
    //allowBlank:false,
    anchor: '100%'
    }
    ]
    }

    Thanks,
    Ivan

  2. #372
    Sencha User
    Join Date
    Sep 2010
    Posts
    58
    Vote Rating
    0
    pret is on a distinguished road

      0  

    Default


    I managed to solve (I think) the z-index problem in my case. I just added a listClass property to the component (it's inherited from ComboBox), being the definition of the css class:

    Code:
    mySuperComboListClass
    {
        z-index: 9999!important;
    }
    Obviusly it isn't the best solution, but it worked for me.

    Hope it helps.


    Thanks a lot for this amazing extension!

  3. #373
    Ext JS Premium Member
    Join Date
    Dec 2010
    Posts
    29
    Vote Rating
    0
    OpnSrce is on a distinguished road

      0  

    Default Shift + Click Support

    Shift + Click Support


    Has anyone figured out how to add /enable support for using Shift + Click to select groups of multiple items?

  4. #374
    Sencha User
    Join Date
    Jun 2010
    Posts
    103
    Vote Rating
    0
    muncher is on a distinguished road

      0  

    Default


    how do I get the selected items corresponding records ? seems like the selected items are removed from the combobox store !

  5. #375
    Sencha User
    Join Date
    Mar 2010
    Posts
    10
    Vote Rating
    0
    timbonicus is on a distinguished road

      0  

    Default


    Quote Originally Posted by muncher View Post
    how do I get the selected items corresponding records ? seems like the selected items are removed from the combobox store !
    The behavior can be controlled with the removeValuesFromStore configuration option. Access the selected items with <SuperComboBox variable>.items (or this.items in a subclass).

  6. #376
    Sencha User frrogoy's Avatar
    Join Date
    Jan 2010
    Location
    Central Indiana
    Posts
    89
    Vote Rating
    0
    frrogoy is on a distinguished road

      0  

    Default


    Does this still work? I'm using Extjs3.2.
    I get an error when hovering on this statement:
    var rec = sbs1.findSelectedRecord(tip.triggerElement);
    Errors with sbs1.findSelectedRecord is not a function.
    Frank R.

  7. #377
    Sencha User
    Join Date
    Mar 2010
    Posts
    48
    Vote Rating
    0
    icarey is on a distinguished road

      0  

    Default Select Event

    Select Event


    It seems there is no Select event like there is in a standard Combobox.
    I want to use the selected record data when it is selected in the list. This works fine with the standard Combobox.
    Is there an event that fires when I click on an item in the list and if not can superboxselect be extended to have one?

    I added this line of code from Extjs Combo.js under the onSelect
    this.fireEvent('select', this, record, index);

    And added it to the onSelect of SuperBoxSelect.js

    onSelect : function(record, index) {
    if (this.fireEvent('beforeselect', this, record, index) !== false){
    var val = record.data[this.valueField];

    if(this.preventDuplicates && this.hasValue(val)){
    return;
    }

    this.setRawValue('');
    this.lastSelectionText = '';

    if(this.fireEvent('beforeadditem',this,val) !== false){
    this.addRecord(record);

    //next line added, it is taken from the standard combobox code
    this.fireEvent('select', this, record, index);

    }
    if(this.store.getCount() === 0 || !this.multiSelectMode){
    this.collapse();
    }else{
    this.restrictHeight();
    }
    }
    },

    I don't know if this is the right way to do it, but the Select event now fires.
    Thanks,
    Ivan

  8. #378
    Sencha User
    Join Date
    Mar 2011
    Posts
    1
    Vote Rating
    0
    rajshinny is on a distinguished road

      0  

    Lightbulb hi frnds

    hi frnds


    how can i have country flags in front of country names ,in superboxselect control pls help me in this

  9. #379
    Ext JS Premium Member
    Join Date
    Feb 2011
    Posts
    43
    Vote Rating
    0
    extjs-dev is on a distinguished road

      0  

    Default


    I am getting this.el is undefined error on line 681 of SuperBoxSelect.js

    I defined a variable superCombo and assign the super combo object to this variable. I then use the superCombo variable as an item in a fieldset.

    Code:
     
    
    var superCombo = { xtype: 'superboxselect', id: 'suppliercombo', name: 'supplier', hiddenName: 'supplier.id', allowBlank: true, msgTarget: 'under', fieldLabel: 'Supplier', emptyText: 'Select supplier', resizable: true, anchor: '100%', store: supplierStore, mode: 'local', displayField: 'name', valueField: 'id', extraItemCls: 'x-tag'
    };
    Anyone run into a similar problem or know what I am doing wrong.

  10. #380
    Sencha User
    Join Date
    Mar 2010
    Posts
    48
    Vote Rating
    0
    icarey is on a distinguished road

      0  

    Default


    Quote Originally Posted by extjs-dev View Post
    I am getting this.el is undefined error on line 681 of SuperBoxSelect.js

    I defined a variable superCombo and assign the super combo object to this variable. I then use the superCombo variable as an item in a fieldset.

    Code:
     
    
    var superCombo = { xtype: 'superboxselect', id: 'suppliercombo', name: 'supplier', hiddenName: 'supplier.id', allowBlank: true, msgTarget: 'under', fieldLabel: 'Supplier', emptyText: 'Select supplier', resizable: true, anchor: '100%', store: supplierStore, mode: 'local', displayField: 'name', valueField: 'id', extraItemCls: 'x-tag'
    };
    Anyone run into a similar problem or know what I am doing wrong.
    I am not sure exactly but line 681 refers to the hiddenName and I see your hiddenName is 'supplier.id', I think the problem may be the period . try to change your Store name to supplierID and then make hiddenName 'supplierID'. that is try it with no period.

Thread Participants: 119

  1. galdaka (9 Posts)
  2. aconran (1 Post)
  3. stever (4 Posts)
  4. dj (1 Post)
  5. mystix (18 Posts)
  6. MarkB (3 Posts)
  7. DrZog (1 Post)
  8. JorisA (2 Posts)
  9. jheid (3 Posts)
  10. Joe (1 Post)
  11. mschering (1 Post)
  12. gigel (1 Post)
  13. akannu (1 Post)
  14. phillipL (1 Post)
  15. badgerd (1 Post)
  16. cmendez21 (1 Post)
  17. mjlecomte (1 Post)
  18. grgur (1 Post)
  19. xantus (1 Post)
  20. garraS (3 Posts)
  21. vahid4134 (2 Posts)
  22. Lloyd K (2 Posts)
  23. boonkerz (3 Posts)
  24. crxtech (3 Posts)
  25. mishanian (7 Posts)
  26. fpw23 (1 Post)
  27. sanjshah (6 Posts)
  28. Zolcsi (1 Post)
  29. SharePat (1 Post)
  30. mjhaston (1 Post)
  31. radtad (16 Posts)
  32. Joyfulbob (2 Posts)
  33. kveeiv (1 Post)
  34. armandoxxx (2 Posts)
  35. imran (1 Post)
  36. Eric24 (1 Post)
  37. drunknmunky (1 Post)
  38. raphac (1 Post)
  39. charleshimmer (1 Post)
  40. frankthetank (4 Posts)
  41. qooleot (3 Posts)
  42. gianpaulo (1 Post)
  43. dennispg (9 Posts)
  44. dasnk (1 Post)
  45. grahamda (1 Post)
  46. sdavids (1 Post)
  47. jasonb885 (1 Post)
  48. wemerson.januario (1 Post)
  49. dizor (3 Posts)
  50. Stju (5 Posts)
  51. extjs_new (1 Post)
  52. senacle (1 Post)
  53. elderotaku (2 Posts)
  54. Dumas (1 Post)
  55. grzegorz.borkowski (13 Posts)
  56. bueth (1 Post)
  57. nonyus (2 Posts)
  58. travisbell (2 Posts)
  59. Jangla (2 Posts)
  60. woooop (2 Posts)
  61. MH61 (2 Posts)
  62. TDub (1 Post)
  63. antoniode (5 Posts)
  64. xiongzhijian51 (1 Post)
  65. l0ga4 (1 Post)
  66. nohurge (2 Posts)
  67. MarkBOneSmart (1 Post)
  68. The Transporter (2 Posts)
  69. swarnendude (1 Post)
  70. arconen (2 Posts)
  71. mratzloff (9 Posts)
  72. Tom23 (1 Post)
  73. nadim (15 Posts)
  74. hongtj (2 Posts)
  75. max.hauser (2 Posts)
  76. dcw (1 Post)
  77. pilotsnipes (2 Posts)
  78. matthewcrist (2 Posts)
  79. fargs (1 Post)
  80. dvuja2 (2 Posts)
  81. sudhirhv (1 Post)
  82. lanhun (2 Posts)
  83. galoch (1 Post)
  84. frrogoy (1 Post)
  85. tboswell (1 Post)
  86. ozum (5 Posts)
  87. scusyxx (1 Post)
  88. hoca (1 Post)
  89. jayasreepc (1 Post)
  90. Jensen (1 Post)
  91. icarey (5 Posts)
  92. mohan_b (1 Post)
  93. skbach_pointyhat (1 Post)
  94. timbonicus (3 Posts)
  95. rachid.abdessamad (1 Post)
  96. ajitmogra (1 Post)
  97. Korbin (1 Post)
  98. istetska (3 Posts)
  99. ian.young (1 Post)
  100. muncher (2 Posts)
  101. sebterzi (2 Posts)
  102. forestclown (1 Post)
  103. Akey (1 Post)
  104. pret (1 Post)
  105. OpnSrce (1 Post)
  106. sriramkumarp (1 Post)
  107. extjs-dev (4 Posts)
  108. mvoss (1 Post)
  109. thomaskee007 (1 Post)
  110. rajshinny (1 Post)
  111. masood (1 Post)
  112. sebholl (1 Post)
  113. forestkwan (1 Post)
  114. deepthi_r (1 Post)
  115. panshr (1 Post)
  116. brian.moeskau (1 Post)
  117. ldashevskiy (1 Post)
  118. lbilde (1 Post)
  119. aoyii (1 Post)

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar