[CLOSED] How i can use the JsonStore FilterBy method in Real Business Application?

  1. #1

    [CLOSED] How i can use the JsonStore FilterBy method in Real Business Application?


    I'm doing search feature for my system grids and i came to the point where the mutliheader filter example [ http://examples1.ext.net/#/GridPanel...Header/Filter/ ]

    using the filterBy method which work fine in local mode but all my grids data is loaded through JsonStore ASMX webservice through HttpProxy with support of paging at the database level
     [query = "select ......... limit start,20"
    so any query i run on DB it return subset of records only. so i know that i can pass the filters to the webservice to do search by expanding the db query with 'like' clause...etc., but i like the filterBy method.
    so is "filterBy " just for demo purpose/kids stuff where user poll/load all the data from table just to perform filter in code-behind!! or what? please answer ASAP.

    Last edited by Daniil; Jun 27, 2011 at 12:46 PM. Reason: [CLOSED]
  2. #2

    'filterBy' for client side filtering only, it filters data are currently loaded to the store
    For server side filtering you have to pass values from header widgets to the server side (web service, mvc controller action and etc) and return new data set
    Vladimir Shcheglov
    Sr. Developer
  3. #3
    got it, thanks a lot.

    i just want to understand the architect point of view when that implemented [maybe its useful for others] so according to my analysis i think that:

    extjs data filtering + ext.net serverzing of that by using [DateFilter, StringFilter, NumericFilter classes] they provided for the people that use simple data storage like [xml] very powerful way of filtering data where the data engine doesn't support any sort of searching. [actually xml doesn't have engine at all].

    so is that correct or other reasons exist behind that features! please enlight my friend.

  4. #4

    [DateFilter, StringFilter, NumericFilter classes] are GridFilters filters classes. it doesn't related with MultiHeader sample
    GridFilters plugin has remote filtering mode

    (http://examples1.ext.net/#/GridPanel...Header/Filter/) this example demonstrates how header widgets can be used. Filtering in that example is just minor constituent (it is very simple implementation, in real application you have to implement your own required filtering)
    Vladimir Shcheglov
    Sr. Developer

Similar Threads

  1. Replies: 4
    Last Post: Nov 09, 2011, 10:53 AM
  2. "Real world" example
    By prost in forum Examples and Extras
    Replies: 6
    Last Post: Oct 08, 2010, 8:54 PM
  3. Real-world use of Coolite
    By danielg in forum Open Discussions
    Replies: 3
    Last Post: Nov 30, 2009, 11:08 AM
  4. TabPanel - Add Tab real time =/
    By brunopacola in forum 1.x Help
    Replies: 0
    Last Post: Nov 25, 2008, 3:03 PM
  5. Replies: 8
    Last Post: Sep 06, 2008, 7:02 PM

Tags for this Thread

Posting Permissions