Hybrid View

  1. #1
    Ext User
    Join Date
    Mar 2007
    Posts
    146
    Vote Rating
    0
    rahulmca1@gmail.com is on a distinguished road

      0  

    Default Class Ext.form.ComboBox+click event

    Class Ext.form.ComboBox+click event


    Hi,

    I need to fatch the items of ComboBox(Class Ext.form.ComboBox) when ever user clicks on combobox. There is no click event in combobox(in docs).

    How can I apply click event to combo box so that when user clicks on combobox the event is fired.

    Thanks.
    with regards

  2. #2
    Sencha - Community Support Team mystix's Avatar
    Join Date
    Mar 2007
    Location
    Singapore
    Posts
    6,236
    Vote Rating
    4
    mystix will become famous soon enough

      0  

    Default


    how about focus?

    or take your pick from the list of ComboBox events

  3. #3
    Ext User
    Join Date
    Mar 2007
    Posts
    146
    Vote Rating
    0
    rahulmca1@gmail.com is on a distinguished road

      0  

    Default


    Focus event will not do the job for me when I populate my combo on focus event because

    On selecting an item ajax request is submitted to server and based on response dom is updated by appending new elements.
    And somehow focus event of combo is triggered automatically(unwanted). I thought by using click event I could avoid this problem.

  4. #4
    Sencha - Community Support Team mystix's Avatar
    Join Date
    Mar 2007
    Location
    Singapore
    Posts
    6,236
    Vote Rating
    4
    mystix will become famous soon enough

      0  

    Default


    then use select.

    your description isn't clear, but it appears you want some action performed only when an item in the ComboBox's list is selected.

  5. #5
    Sencha User steffenk's Avatar
    Join Date
    Jul 2007
    Location
    Haan, Germany
    Posts
    2,649
    Vote Rating
    6
    steffenk has a spectacular aura about steffenk has a spectacular aura about steffenk has a spectacular aura about

      0  

    Default


    look here where i have a sample with linked combos:
    http://extjs.com/forum/showthread.php?p=55029#post55029

  6. #6
    Ext User
    Join Date
    Mar 2007
    Posts
    146
    Vote Rating
    0
    rahulmca1@gmail.com is on a distinguished road

      0  

    Default


    Thanks for replying

    What I wanted was to load data model used for combo when someone clicks combobox.
    (ie populating combo when select is clicked). Click event is what I was looking for which was not there.
    Searching for other options

    Thanks

  7. #7
    Sencha User
    Join Date
    Mar 2012
    Posts
    4
    Vote Rating
    0
    Shashwat Rohilla is on a distinguished road

      0  

    Default


    Quote Originally Posted by rahulmca1@gmail.com View Post
    Hi,

    I need to fatch the items of ComboBox(Class Ext.form.ComboBox) when ever user clicks on combobox. There is no click event in combobox(in docs).

    How can I apply click event to combo box so that when user clicks on combobox the event is fired.

    Thanks.
    with regards
    You can have a listener as below:-

    var applicationCombo = new Ext.form.ComboBox({
    store: ['Application 1', 'Application 2', 'Application 3'],
    listeners: {
    'select': function(combo, record, index){ /* Your code */ }
    }
    });

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