Hi Support
I'm using the ASP.NET
MVC Grid => @(Html.EJ().Grid<object>("FlatGrid") and I need a Button in Header of a grouped column like in the
following picture => I have three level of grouped columns and I need the Button only in the one in the middel How can I archieve
this?
|
@(Html.EJ().Grid<DataContainer.DCPart>("HeaderTemplate")
.Datasource((IEnumerable<object>)ViewBag.datasource)
-------------------
.SummaryRow(row =>
{
row.ShowCaptionSummary(true)
.ShowTotalSummary(false)
.SummaryColumns(col =>
{
col.SummaryType(SummaryType.Average)
.DisplayColumn("Freight")
.DataMember("Freight")
.Format("{0:C}")
.Template("<button id='button'>Click</button>")
.Add();
}).Add();
})
.Columns(col =>
{
-----
})
) |
|
.ClientSideEvents(e=>e.ActionComplete("complete"))
)
<script type="text/javascript">
function complete(args) {
if (args.requestType == "grouping")
$(".e-recordplusexpand[data-ej-mappingname!='Freight']").siblings(".e-groupcaptionsummary").text("")
}
</script>
|
|
|