Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Filters with Paged list grid.

    Hi Isomorphic,

    I have a Paged List Grid with a Rest DataSource attached. I also have an attached filter editor to the grid.

    Now I want to filter data on the partially populated grid (since pagination is enabled) this sends a server side request. Instead I want to enable client side filtering only.

    Also I have set the 'useClientFiltering:true' property correctly but this makes no difference in the behaviour of the filter.

    Here's grid source code:
    Code:
    isc.ListGrid.create
    ({
    	ID: "searchResultsGrid",
    	dataProperties:{
    		useClientFiltering:true,
    	},
    	showFilterEditor:true,
    	dataPageSize: 50,
    	canEdit : true,
    	autoSaveEdits:false,
    	fetchData : function ()
    	{
    	    return this.Super("fetchData", <SEARCH_FORM>.getValues());
    	},
    	dataSource:<SOME REST DATASOURCE.>,
    	autoFetchData: true
    })
    Thanks,
    +Abhishek
    Last edited by ajjain; 25 May 2009, 02:46.

    #2
    The problem is what's supposed to happen next - once filtering happens only on the client how does the user indicate that he wants to go back to filtering the complete dataset?

    You can cause local filtering by taking the dataset from the grid, which is a ResultSet, and replacing it with an Array that contains all the currently loaded rows (see the ResultSet APIs for how to do this). But you'll need to come up with a UI that allows the user to reverse this process later.

    Comment

    Working...
    X