PDA

View Full Version : How can I place "grid search" in tbar and bbar?



yagi
23 May 2010, 8:33 PM
Hi all..
[Sorry for my English]

I got a problem when i want to place the grid search in tbar..
if it is placed in bbar, there is no problem, it runs well. but when I try to place it in tbar, it doesn't work.


Here is my snippet code :



/* it generates an error */
config.tbar=[{
new Ext.ux.grid.Search({
iconCls:'icon-zoom',
store: config.ds
//,readonlyIndexes:['modified']
//,disableIndexes:['pctChange']
,minChars:2
,autoFocus:true,
mode:'local'
})
}]

/*it runs well.., (in bbar) */
config.search = new Ext.ux.grid.Search({
iconCls:'icon-zoom',
store: config.ds
//,readonlyIndexes:['modified']
//,disableIndexes:['pctChange']
,minChars:2
,autoFocus:true,
mode:'local'
})

config.plugins = [config.rowActions, config.search];
can anybody help me to solve it?


Thx before..

mankz
24 May 2010, 12:38 AM
The answer is in the source, study the config options... :)

http://gridsearch.extjs.eu/source.php?file=js/Ext.ux.grid.Search.js

yagi
24 May 2010, 5:28 PM
Ok.., thanks a lot Mankz..

My code has run now..

:)