deserializing gridfilters parameter with remote store

  1. #1

    deserializing gridfilters parameter with remote store

    this could be my lack of knowledge in most things JSON, but is there a way to deserialize the gridfilters parameter that is submitted when you have your store configured to use an httpproxy?

    when i specify a filter value for a grid filter (using GridFilter plugin), this is what i see in firebug:

    Parametersapplication/x-www-form-urlencoded
    
    gridfilters    {"f_0_field":"Administrator_Name","f_0_data_type":"string","f_0_data_value":"k"}
    Source
    entity=Facility&gridfilters={"f_0_field"%3A"Administrator_Name"%2C"f_0_data_type"%3A"string"%2C"f_0_data_value"%3A"k"}
    so i want to grab that request parameter in my proxy backend page and deserialize it into an object i can use to apply the filters to my sql query that populates the store.

    I know i can create my own deserialization routine, but i'm thinking this is a common enough problem that there's a better way instead of rebuilding the wheel so to speak...

    Hopefully one of you smart people have a good way to handle this off the top of your head......

    THANKS!
    Last edited by geoffrey.mcgill; Nov 20, 2011 at 3:10 AM. Reason: please use [CODE] tags
  2. #2
    Hi,

    Please see code behind of this example:
    https://examples1.ext.net/#/GridPane...ilters_Remote/

    As far as you can see "gridfilters" is deserialized using the FilterConditions class.
  3. #3

    [SOLVED]

    Thanks Danil - you are awesome as usual.

    And I found Ext.encode / decode - sorry for being such a noob.

    Thanks!

Similar Threads

  1. Problem when deserializing store data
    By Pablo_Azevedo in forum 1.x Help
    Replies: 0
    Last Post: Aug 13, 2012, 1:18 PM
  2. [CLOSED] Remote Filtering through Plugin 'GridFilters' with MVC
    By jesperhp in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Nov 01, 2011, 3:10 PM
  3. [1.0] Codebehind and GridFilters/Remote filtering
    By plykkegaard in forum 1.x Help
    Replies: 7
    Last Post: Oct 26, 2011, 10:01 AM
  4. Remote GridFilters via HttpProxy
    By Thinjon100 in forum 1.x Help
    Replies: 1
    Last Post: Sep 19, 2011, 1:39 PM
  5. Extend Gridfilters Remote example with grouping
    By CarWise in forum 1.x Legacy Premium Help
    Replies: 14
    Last Post: Oct 14, 2010, 12:15 PM

Tags for this Thread

Posting Permissions