We have 4 record tracking columns UserID & Date, One set for create and one set for last modified. We initially have them all hidden in our grid. When using the grid context menu you cannot tell one set from the other because it only shows the group title in the menu. I could probably live with that, but if you unhide only one of the 2 in the group. You do not get the grouping title and there cannot tell which one it is. Below is the grid code for the 4 columns described.
//CREATED COLUMNS
columns.Group(groupCR => groupCR
.Title("Created").HeaderHtmlAttributes(new { @style = "text-align:center;" }).Hidden(true)
.Columns(CRgrp =>
{
CRgrp.Bound(p => p.CREATE_USERID).Width(100).Title("User").Width(80).ClientTemplate("<
a
onMouseOver=\"showName(this, '#=CREATE_USERID#')\">#=CREATE_USERID#</
a
>");
CRgrp.Bound(p => p.CREATE_DT).Format("{0:d}").Title("Date").Width(80);
})
);
//MODIFIED COLUMNS
columns.Group(groupMD => groupMD
.Title("Modified").HeaderHtmlAttributes(new { @style = "text-align:center;" })
.Columns(MDgrp =>
{
MDgrp.Bound(p => p.MODIFIED_USERID).Width(100).Title("User").Width(80).ClientTemplate("<
a
onMouseOver=\"showName(this, '#=MODIFIED_USERID#')\">#= MODIFIED_USERID != null ? MODIFIED_USERID : '' #</
a
>");
MDgrp.Bound(p => p.MODIFIED_DT).Format("{0:d}").Title("Date").Width(80);
})
);
Any help would be appreciated.