-
27 Jan 2011 9:17 AM #891
If you have DateFilter and select 'After', 'Before' and then select 'On' option w/o using Date picker, After and Before stay checked
I've added the following patch to onCheckChange
Code:onCheckChange : function (menuItem, checked) { var fields = this.fields; var field = this.fields[menuItem.itemId.split('-')[1]]; if((field == fields.on) && checked) { fields.before.setChecked(false, true); fields.after.setChecked(false, true); } else { if(checked) { fields.on.setChecked(false, true); } } this.setActive(this.isActivatable()); this.fireEvent('update', this); },
-
14 Feb 2011 3:14 AM #892
Hi friends,
I am using Grid-Filter plugin, But my requirement is, i should be able to do AND ing OR ing of search/filter results, But i dont think and i have tried it also ... that this plugin provides this facility to have AND ing /OR ing of results...
What i mean is,:-
e.g there is grid and i am searching over a column, and i want to search for two values...i.e OR /AND ing
e.g. My filter text input will be like "xyz OR abd".
So it should be give me results where xyz or abd is present in that column value,
Currently it will not give any results for this type of search ...yes i know filter is not a full search.
But still it can improve the functionality in case of large grid-data.
If anyone can please help me it would be very nice.
Thank you.
-
2 Mar 2011 7:15 AM #893
-
28 Mar 2011 6:36 AM #894
Mouse over issue when applying filter to any date type column
Mouse over issue when applying filter to any date type column
Hi,
There are three options for the filter in my grid in the column of "Completion date". The three options are "After", "Before", "On". Whenever I apply filter in the grid on this column then filter is working fine. but when I need to change the filter i.e if I change the After filter to the Before filter then first it hide the small window of (After, Before, On) and then I have to again apply filter for Before. I need that when I change the filter, the small window should stay till I click outside the small window/calendar. Means I have to add the mouse over code in the filter of date type column.
-
28 Mar 2011 8:19 AM #895
Shobhit Rastogi,
This is an easy fix for you, but may not be the desired functionality for others, here's how to do what you want by adding this line of code which will stop the datefilter date picker from closing when clicked:
to the init function in the javascript file DateFilter.js in the examples/ux/gridfilters/filterCode:hideOnClick: false
The updated init function should look like (maybe not exactly if I have an old version of grid filters):
Code:init : function (config) { var menuCfg, i, len, item, cfg, Cls; menuCfg = Ext.apply(this.pickerOpts, { minDate: this.minDate, maxDate: this.maxDate, format: this.dateFormat, listeners: { scope: this, select: this.onMenuSelect } }); this.fields = {}; for (i = 0, len = this.menuItems.length; i < len; i++) { item = this.menuItems[i]; if (item !== '-') { cfg = { itemId: 'range-' + item, text: this[item + 'Text'], menu: new Ext.menu.DateMenu( Ext.apply(menuCfg, { itemId: item, hideOnClick: false }) ), listeners: { scope: this, checkchange: this.onCheckChange } }; Cls = Ext.menu.CheckItem; item = this.fields[item] = new Cls(cfg); } //this.add(item); this.menu.add(item); } },
-
11 Apr 2011 8:26 AM #896
How to change filter config ?
How to change filter config ?
Hi friends,
im am new to Ext. and in my first Grid i try to use this Grid Filter Plugin.
I have spend now days for finding out how to change/redefine/reconfig the config.
The reason why im trying to do this is that my ColumnModel is changing by selecting an Entry in a
ComboBox. That means ColumnModel and Store are dynamic. And after/before (tryed both)
doing a reconfig on the Grid, i try to (re)set the Filter new .. adapted to the new column model..
the are some line of my Code :
var newFilters = new Array();
//....for instance..
newFilters[0] = new Object();
newFilters[0]["type"] = 'string';
newFilters[0]["dataIndex"] = 'newCol1';
newFilters[1] = new Object();
newFilters[1]["type"] = 'string';
newFilters[1]["dataIndex"] = 'newCol2';
var changedFilters = new Ext.ux.grid.GridFilters({filters:newFilters});
grid.plugins.filters.addAll(changedFilters.filters.items);
grid.reconfigure( newStore, newColMod );
The Effect is that the new Columns are all equiped with the Filter Option but as sson as i try to
enter a Value in on of the Filters ..
I get an error called .. "this.grid is Null or not an Object"
What is wrong with my Coding ? Can someone help ? I would really appreciate it ..
Many thanks in advance for your Help Guys !! You all here are GREAT and EXT is a damn Good lib !!
Regards,
a.ti
-
12 Apr 2011 12:50 AM #897
-
12 Apr 2011 4:10 AM #898
Hi All,
Ext 3.3.1
After I reconfigure the grid the filter as been cleared. How can I preserve them or save it for re-apply it after reconfigure.
Thanks for your helpTamditi Karim
-
15 Apr 2011 2:02 AM #899
Problem with GridFilter in window
Problem with GridFilter in window
I have a Grid with GridFilter in a modal window and when I show for the first times the grid it's work all fine.
If I close the window and after I reopen it the GridFilter in the grid doesn't appears. Why?
-
18 Apr 2011 7:02 AM #900
Filter Plugin usage after a reconfig of ColumnMode, DataStore and Filter Config..?
Filter Plugin usage after a reconfig of ColumnMode, DataStore and Filter Config..?
Hey Guys,
does really no one knows how to handle a reconfig with changing the Filter Plugin configs.
I have tried several Options without success .. only wasting time with it :-(..
Can Someone help please ?
regards
A.ti


Reply With Quote