PDA

View Full Version : I need 'simple' Opt group combo box (with ajax) - any example



pokerking400
13 May 2008, 2:25 AM
I am looking for simple combobox example that loads data from server. And also optgroup feature.

i don't want too much garbage on combo box...You have to have a design such a way that additional features should be a plugin into combobox.

That way you will have cleaner widget.

Any simple combo box (ajax) example will do to start .

Thanks...:)

pokerking400
13 May 2008, 4:46 AM
ok this what i am using....


editor=new Ext.grid.GridEditor(
new Ext.form.ComboBox({
displayField:'name',
valueField: "id",
triggerAction:'all',
typeAhead:true,
mode:'remote',
hiddenName : 'country_id1',
listClass:'x-combo-list-small',
emptyText:'Select Country...',
store: new Ext.data.JsonStore({
autoLoad: true,
root:'records',
totalProperty:'totalCount',
fields:["id","name"],
url:'/reference/boards',
id:"id"
}),
hideTrigger:true })
);


I am using it as editor in editorgrid panel..

combobox is not showing up when i click on the field.. but it shows up when i press down ARROW....

Can someone help me here?. thanks...:)

pokerking400
13 May 2008, 4:57 AM
How do i show combobox on the grid beginning itself before even click on the field?.

pokerking400
13 May 2008, 6:52 AM
what no one answer my question?/:)

say2paul
25 May 2008, 9:38 PM
what no one answer my question?/:)

I am also facing the same problem, when I click on the arrow the combobox list is displayed but when I click any where in the box the list is not displayed.

Can anyone help me?

say2paul
26 May 2008, 1:09 AM
I am also facing the same problem, when I click on the arrow the combobox list is displayed but when I click any where in the box the list is not displayed.

Can anyone help me?

Solution:


selectOnFocus:true,
editable: false,