Help with Netzke Grid Grouping feature

43 views
Skip to first unread message

Jorge Segura

unread,
Jan 28, 2014, 10:11:35 AM1/28/14
to net...@googlegroups.com
Hi everybody.

Does anybody succeded configuring grouping feature on a grid?
This doesn't work for me.

Hello to all, here is the solution from Max Gorin, Thanks Max. 

It's pretty straight forward. Here's the relevant code from my working grid component that implements grouping:

JS:

  initComponent: function(){
    this.features = [{
      ftype: 'grouping'
    }];
    this.callParent();
  }

Ruby:

  def configure(c)
    super
    c.data_store = {
      # grouping
      group_field: 'client__short_name',

      # sorting
      sorters: [
        :client__short_name
      ]
    }
  end

Netzke rocks!

Reply all
Reply to author
Forward
0 new messages