How can i get the plugin to work with my tbar :(
Printable View
How can i get the plugin to work with my tbar :(
you're a life saver! i was just about to try and tackle this myself. it wouldn't have been pretty. well done sir!
nice plugin! thx for sharing =)
i have a question.... is possible make work this plugin with autogrid??? can u give an example please...
thx for u time and answer
Thanks for this plugin.
I'm using a GroupingView with startCollapsed:true, so I added the following code just before the end of onTriggerSearch:
Code:// Give immediate feedback of rows found in case there are collapsed groups
var view = this.grid.getView();
if ("expandAllGroups" in view) {
view.expandAllGroups();
}
} // end of function onTriggerSearch
Hi,
Thanks for the plugin! I use the paging toolbar, and somehow the store.lastOptions is an object, but it has no params... (That is, if the grid is just opened and the user has not paged yet). So I added these 2 checks (in bold). I suppose it's my own config, but I just wanted to let you know.
Greetz,
Ronaldo
Code:else {
// clear start (necessary if we have paging)
if(store.lastOptions && store.lastOptions.params) {
store.lastOptions.params[store.paramNames.start] = 0;
}
// get fields to search array
var fields = [];
this.menu.items.each(function(item) {
if(item.checked) {
fields.push(item.dataIndex);
}
});
// add fields and query to baseParams of store
delete(store.baseParams[this.paramNames.fields]);
delete(store.baseParams[this.paramNames.query]);
if (store.lastOptions && store.lastOptions.params) {
delete (store.lastOptions.params[this.paramNames.fields]);
delete (store.lastOptions.params[this.paramNames.query]);
}
if(fields.length) {
store.baseParams[this.paramNames.fields] = Ext.encode(fields);
store.baseParams[this.paramNames.query] = val;
}
Oh yes, you're right. I've never loaded store w/o params.
Thanks for debugging.
i'm getting some odd behavior when i use CheckboxSelectionModel() it's including the checkbox column as a searchable field. how can i disable it?
when i try to use the plugin i have no Triggerfield. It will be rendered but not displayed? Where is my fault?
When i look in firebug the triggerfield has an width of 0px ???
EDIT: It seems that this behaviour only appears when use a card-layout... :-(
Code:// Das Grid deklarieren
grid = new Ext.grid.GridPanel({
id: 'grid_users',
region: 'center',
minSize: 100,
maxSize: 500,
stripeRows: true,
ds: ds,
cm: columnModel,
title: LANG.GRID_ManagedGroups_Title,
viewConfig: {
forceFit: true
},
width: 600,
height: 300,
selModel: new Ext.grid.RowSelectionModel({
singleSelect: false
}),
enableDragDrop: true,
ddGroup: 'usersDD',
autoExpandColumn: 'user_email',
tbar: toolbarButtons,
bbar: new Ext.PagingToolbar({
pageSize: 25,
store: ds,
displayInfo: true,
displayMsg: LANG.GRID_PTB_displayMsg,
emptyMsg: LANG.GRID_PTB_emptyMsg
}),
plugins: [new Ext.ux.grid.Search({
searchText: 'Suche',
mode: 'remote',
iconCls: false,
dateFormat: 'd m Y H:i',
position: 'top'
})]
})