Aug 09, 2013, 3:28 PM
[CLOSED] GridPanel Filter with Checked Selections
I have a GridPanel using a CheckboxSelectionModel with a text filter that displays matches from the store as you type:
This is the js function that is executed to apply the text filter:
Any solutions or alternative suggestions would be so appreciated. :) Thanks!
This is the js function that is executed to apply the text filter:
function ApplyTextFilter(sender, textField) {
var grid = Ext.getCmp(sender);
var dataIndex = grid.getId().replace("_Grid", "");
var store = grid.getStore();
store.filterBy(function (record) {
var value = textField.getValue() || "";
var val = record.get(dataIndex).toLowerCase();
return val.indexOf(value.toLowerCase()) > -1;
}
);
}
The problem is that when I make checkbox selections, and then apply a new text filter, I lose the previous selections. I want to be able to keep the current selections as I search new text. This is a mockup of what I mean:Any solutions or alternative suggestions would be so appreciated. :) Thanks!
Last edited by Baidaly; Aug 09, 2013 at 8:17 PM.
Reason: [CLOSED]