[CLOSED] Custom order of groups with Group Summary Plugin - MVC

  1. #1

    [CLOSED] Custom order of groups with Group Summary Plugin - MVC

    Hi Guys,

    I've done a page with a table using this example http://mvc.ext.net/#/GridPanel_Plugins/GroupingSummary/

    The page looks great, but I have a little problem: I don't want the group order as alphabetical but I want a custom order of the groups based on another value

    Seems to be the same problem explained in the thread below:

    http://forums.ext.net/showthread.php...rbitrary-order

    but I can't transform the solution proposed in the thread in the MVC context.

    Any suggestion is really appreciated!

    Attached below is the table code:

                    @(Html.X().GridPanel()
                        .Title("Title")
                        .Width(1120)
                        .Height(350)
                        .AllowDeselect(true)
                        .StoreID("StoreWebAppForm")
                        .Cls("grid-home-firm")
                        .ColumnLines(true)
                        .Draggable(false)
                        .EnableColumnHide(false)
                        .EnableColumnMove(false)
                        .EnableColumnResize(false)
                        .ColumnModel(
                            Html.X().
                                CommandColumn().
                                Width(75).
                                Commands(
                                    Html.X().
                                        GridCommand()
                                        .CommandName("Edit")
                                        .Icon(Icon.NoteEdit)
                                        .Text("Compila"))
                                        .Listeners(ls => ls.Command.Handler = "CompileForm(record.data," +  new JavaScriptSerializer().Serialize(Model.WebAppForms) +")"),
    
                            Html.X()
                                .Column()
                                .Text("Nome pubblicazione")
                                .Width(100)
                                .DataIndex("PublicationGroupName"),                            
                                
                            Html.X()
                                .DateColumn()
                                .Text("Scadenza")
                                .Width(100)
                                .DataIndex("ExpireDate"),
    
                            Html.X()
                                .Column()
                                .Text("Anno")
                                .DataIndex("YearValue")
                                .Width(75),
    
                            Html.X()
                                .Column()
                                .Text("Formulario")
                                .DataIndex("fo_name")
                                .Flex(1)
                                .Sortable(false)
                          )
                        .Features(
                            Html.X().GroupingSummary()
                                .ID("GroupingSummary1")
                                .GroupHeaderTplString("{name}")
                                .HideGroupedHeader(true)
                                .EnableGroupingMenu(false)
                        )                      
                    )
    Last edited by Daniil; Nov 26, 2013 at 6:39 AM. Reason: [CLOSED]
  2. #2
    Hi @aguidali,

    We would recommend you to use a Store's RemoteGroup.
    http://docs.sencha.com/extjs/4.2.1/#...fg-remoteGroup

    This example is for v1, but there is only a few key points: set RemoteGroup="true" for the Store and do grouping on server when you bind the data.
    http://forums.ext.net/showthread.php...ll=1#post25707

Similar Threads

  1. [CLOSED] Order GridPanel Groups in an arbitrary order?
    By dmoore in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Dec 27, 2013, 4:35 AM
  2. Order GridPanel Groups
    By dany4446 in forum 1.x Help
    Replies: 4
    Last Post: Feb 03, 2012, 1:37 AM
  3. Replies: 0
    Last Post: Apr 10, 2011, 7:57 PM
  4. Group By with Paging only groups visible rows
    By rthiney in forum 1.x Help
    Replies: 3
    Last Post: Sep 21, 2009, 5:42 PM
  5. Replies: 1
    Last Post: Sep 03, 2009, 2:06 PM

Posting Permissions