1. #1
    Sencha User
    Join Date
    Jan 2011
    Posts
    11
    Vote Rating
    0
    saucompeng is on a distinguished road

      0  

    Question Unanswered: ExtJs Transform Combobox By Class name

    Unanswered: ExtJs Transform Combobox By Class name


    <select name="state" id="state" class="combobox">
    <option value="AL">Alabama</option>
    .
    .
    .
    </select>

    <select name="state2" id="state2" class="combobox">
    <option value="AL">Alabama</option>
    .
    .
    .
    </select>


    How do I transform all members of .combobox class ? > applyTo allow only ID , I want to use Class name ?

    Please help me_?

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,251
    Answers
    1
    Vote Rating
    73
    Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold

      0  

    Default


    Code:
    Ext.select('.combobox', true).each(function(el){
      new Ext.form.ComboBox({
        transform: el,
        ...
      });
    });

  3. #3
    Sencha User
    Join Date
    Jan 2011
    Posts
    11
    Vote Rating
    0
    saucompeng is on a distinguished road

      0  

    Default


    Thanks a lot , That's good

  4. #4
    Sencha User
    Join Date
    Jan 2011
    Posts
    11
    Vote Rating
    0
    saucompeng is on a distinguished road

      0  

    Default How to select combobox ?

    How to select combobox ?


    Then how to select ( Ext.getCmp(?) ) combobox by Id ?

  5. #5
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,251
    Answers
    1
    Vote Rating
    73
    Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold

      0  

    Default


    If you know the id then you can use Ext.getCmp. Do you know the id?

  6. #6
    Sencha User
    Join Date
    Jan 2011
    Posts
    11
    Vote Rating
    0
    saucompeng is on a distinguished road

      0  

    Default


    Yes, I know but it doesnt get it with getCmp!

  7. #7
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,251
    Answers
    1
    Vote Rating
    73
    Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold

      0  

    Default


    Is it really the id of the ComboBox or is it the id of the element?

    In that case you would have to assign the id to the component:
    Code:
    Ext.select('.combobox', true).each(function(el){
      new Ext.form.ComboBox({
        id: el.id,
        transform: el,
        ...
      });
    })

  8. #8
    Sencha User
    Join Date
    Jan 2011
    Posts
    11
    Vote Rating
    0
    saucompeng is on a distinguished road

      0  

    Default


    Ok , I will try it , then I will write result here.. Thanks

Similar Threads

  1. ComboBox transform in EditorGridPanel
    By Northrog in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 27 Aug 2008, 8:41 AM
  2. Combobox: transform by name?
    By bm_mz in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 10 Jul 2008, 7:50 AM
  3. transform combobox - how to get id
    By bai in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 29 Feb 2008, 12:11 AM

Thread Participants: 1

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