|
|||||||
![]() |
|
|
Thread Tools |
|
#1
|
||||
|
||||
|
Moderator edit: There's a 3.x version in svn now for those interested, click here.
Example: http://ccinct.com/lab/filter-grid/ I am excited to hear that a number of people have started using / extending the filters. If you have an extension (like some sort of panel based filter configuration) PM me with a link to the related thread and I will link it here. Thanks to every one who has helped bang out bugs and assisted newer users. Also, I would like to credit ControlPath, the company that pays for my time =) The filters were developed to support an ongoing effort to transition the product to a 100% Ext UI and they were kind enough to let me share the code with you guys. Server Side Code Due to copyright issues I cannot share my implementation of the server side code (written in Java), and the PHP is to entangled in a bigger framework / hacked together to share. If you have an implementation you would like to share, PM me with the files and I will link them here. PHP
Ruby on Rails
Python
Grails
Initial Release
Version 0.2
Version 0.2.1 (Minor update, thanks for the feedback) Bug Fixes
Enhancements
Version 0.2.2, 0.2.3, 0.2.4, 0.2.5 Bug Fixes
Version 0.2.6 Bug Fixes
Enhancments
Version 0.2.7 June 4th, 2008 Enhancments
Version 0.2.8 August 22nd, 2008 Enhancments
Bug Fixes
|
|
#2
|
||||
|
||||
![]() Perfect. I can't imagine a better way to do that. But I think I've found a bug, try to do as follow: 1. Resize the width of one column making the last column not visible on the grid panel (a horizontal scrollbar will be shown) 2. Go to the second page 3. Create a filter in the "Visible" column to show just "No" visibles records After doing that I can't remove this filter anymore because the scrollbar is gone and the grid will no longer show any data because I'm on the second page that has no records. In this particulary case, going back to the first page after any filtering, solves the problem. But what if after setting a filter on the last column made the grid show no records? In this case I wouldn't be able to remove the filter anymore. |
|
#3
|
||||
|
||||
|
Fantastic job Ambience.
BTW, problems like krycek has noticed, are the reason for what i prefer a separate panel/region/whatever for filtering, instead of rendering it on columns menu. Thank you for porting it to 2.0 branch in so little time. |
|
#4
|
||||
|
||||
|
Excellent work, thanks for sharing
![]() |
|
#5
|
|||
|
|||
|
Waiting for beta-version =)
Thanks! |
|
#6
|
||||
|
||||
|
Quote:
As a small work around, you could add a 'clear filters' button to your paging tool bar and bind its handler to filters.clearFilters(). If you wanted to get even more fancy, you could build a menu button that had items for each of the configured filters. I will add a 'filteradded' event to the GridFilters to help facilitate this. Thanks for the feedback. |
|
#7
|
||||
|
||||
|
Great work ambience. Thank you for sharing, I am sure there are many who will find this useful!
|
|
#8
|
|||
|
|||
|
very cool the filter, is there any way to do filter in the side client only for instance or it is only to server side?
regards Frank |
|
#9
|
|||
|
|||
|
Hello,
Thanks for this nice filter feature. I have a question please, I am new to extjs and I am trying to make an example running, I am using your filter-grid, DWR and Spring. The problem is that I can't read the filter parameter on the Java side.. I am not sure of the parameter name. shouldn't it be "filters"? Appreciating your help. |
|
#10
|
||||
|
||||
|
By default the field is 'filter', with out the 's'. But that is configurable with the 'paramPrefix' confg option. For example:
plugins: new Ext.ux.grid.GridFilters({paramPrefix: 'omgBearIsDriving'});
filter[0][data][type]=string filter[0][data][value]=Geek filter[0][field]=name filter[1][data][type]=list filter[1][data][value]=medium,large,extra large filter[1][field]=size plugins: new Ext.ux.grid.GridFilters({
buildQuery: function(filters){
var p = {};
for(var i=0, len=filters.length; i<len; i++){
// Custom filter serialization
}
return p;
}
});
|
![]() |
| Thread Tools | |
|
|