Hi, i want filter a combobox from other combobox:
var top3 = new Ext.FormPanel({
frame:true,
title:'Artículos',
items:[{
layout:'column',
items:[{
columnWidth:.23,
labelWidth: 55,
layout:'form',
items:[{
xtype:'combo',
store: storeSub,
fieldLabel:'SubMarca',
name:'sub',
displayField:'desc', Grid for WPF:: Eventhandlers (solved wrong Version) C1 WPF Grid Column filter does not work. Retrieve value from Combobox in DataGrid. HighLight entire row http://forums.componentone.com/CS/forums/rss.aspx?ForumID=80&Mode=0HOME | CodeProject: ComboBox in a DataGrid. Free source code and programming help:: embed a ComboBox (DropDownList) even though .NET 2.0 has solved the problem with a ComboBox in a DataGrid. DataGrid with built-in filter functionality http://www.codeproject.com/KB/grid/RenDataGridComboBoxColumn.aspxHOME |
typeAhead: true,
mode: 'local',
triggerAction: 'all',
selectOnFocus:true,
valueField:"prodh",
anchor: '90%',
listeners : {
change: function(f,n,o) { datagrid filtering - AndreaVB Visual Basic and VB.NET source code :: how can i filter a grid and a combobox using another combobox??? can someone help me? helpful, please mark this topic as solved. 28-05-2005 at 12:05 AM http://www.andreavb.com/forum/viewtopic.php?TopicID=5210HOME | Excel Help [Archive] - Page 43 - VBA Express Forum:: Solved: Any tutorials about adding items by typing into a Combobox? Solved: Filter data and count unique. custom function error. Audit trail macro on excel? http://www.vbaexpress.com/forum/archive/index.php/f-17-p-43.htmlHOME |
var rgfilterSubMarca = new RegExp(^f.getValue);
top3.findField('mod').getStore().filterBy(function (record) {
return record && rgfilterSubMarca.test(record.get('prodh'));
});
}
}
}]
},{
columnWidth:.14,
labelWidth: 27,
layout:'form',
items:[{
xtype:'combo',
store: storeMod,
fieldLabel:'Mod.',
name:'mod',
displayField:'desc',
typeAhead: true,
mode: 'local',
triggerAction: 'all',
selectOnFocus:true,
valueField:"prodh",
anchor: '90%'
}]
...
...
I do, when change the combobox, obtain the store (but appear an error) and do the filter.
Why appear error when obtain the store?
Thanks,
Give your combo an id, then use Ext.getCmp to retrieve it.
How can use Ext.getCmp this: Ext.getCmp(id).getStore()??
Thanks,
anybody?
How are we supposed to guess if you don't provide the error?
The API docs dont list a 'getStore' method for comboBox, which is exactly what the error is telling you.
They do list a 'store' property however.
solved with:
Ext.getCmp('mod').store.
Thanks,
Appear the same error:
Ext.getCmp("mod").getStore is not a function
Thanks,
Sorry, the error is:
"top3.findField('mod').getStore() isn´t a function"
Thanks,
Give your combo an id, then use Ext.getCmp to retrieve it.
Nortel Unveils Vision, Strategy for Israeli High-Performance Net
Busy Friday Leads to Strong Close for Net Stocks
|