Nov 22, 2013, 9:41 AM
[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:
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]