• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

extJS and HTML select

Guest
Nov 15, 2010 Nov 15, 2010

Copy link to clipboard

Copied

Hi All-

I have two select dropdowns. When one dropdown is selected, the other dropdown value selected to a default value which is 0 in my case and viceversa. We had to convert our dropdowns to extJS combobox to include search functionality in the dropdown. How can I achieve the above in extJS. In javascript I can simply use onchange function and get what I want, but not able to do the same in extJS.

Here is the code I have till now
Ext.onReady(function(){
  var converted = new Ext.form.ComboBox({
     typeAhead: true,
     triggerAction: 'all',
     transform:'id_Select1',
     width:600,
    forceSelection:true,
    emptyText:'Select' }
});

var converted2 = new Ext.form.ComboBox({
     typeAhead: true,
     triggerAction: 'all',
     transform:'id_select2',
     width:600,
     forceSelection:true,
     emptyText:'Select'
});
}); I have two select drop downs populated from database

TOPICS
Advanced techniques

Views

1.3K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Nov 16, 2010 Nov 16, 2010

Copy link to clipboard

Copied

You might want to post this question on a forum for ExtJS.


Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 18, 2010 Nov 18, 2010

Copy link to clipboard

Copied

LATEST

This is fairly easy to do. If you need help with using CF Query info with ExtJS

directly you can check out my CFQueryReader for ExtJS (http://cfqueryreader.riaforge.

org). A good post for ExtJS related selects is:

http://www.webeks.net/programming/extjs/dynamic-cascading-linked-combobox.html

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation