Destiny of LiveSearchGrid and extra params after last refactoring?

20 views
Skip to first unread message

Алексей Ковынев

unread,
May 15, 2013, 4:02:44 AM5/15/13
to net...@googlegroups.com
The question is how? Maybe you wish to change extensions.js?

  // Build consistent request params
  paramsFromOperation: function(operation) {
    var params = Ext.copyTo({}, operation, 'limit,start,sorters,filters');
    if (operation.params.filter) params.filters = Ext.decode(operation.params.filter);
    params.query = this.extraParams.query;
// !!!!!!!
    if (this.extraParams !== {}) {                                            
      params.base_params = Ext.encode(this.extraParams);
    }
// !!!!!!!
    return params;
  }

Max Gorin

unread,
May 15, 2013, 11:25:00 AM5/15/13
to net...@googlegroups.com
Please, try the newly added to Basepack GridLiveSearch plugin (screenshot showing https://github.com/netzke/netzke-basepack/blob/master/test/basepack_test_app/app/components/grid_with_live_search.rb):




It's way more flexible and configurable than the one from CommunityPack.

--
Max Gorin
@nomadcoder
author of @netzke


Reply all
Reply to author
Forward
0 new messages