I am attempting to create a client-side grid toolkit (export, print to pdf, group by column, expand/collapse all, reset grid). All features wor except the group by column. I can get the column index, but the groupcolumn clientside function requires the uniquename. How can I get this? The following code allows me to opposite-click on the grid and get the col index:
function ColumnContextMenu(sender, eventArgs) |
{ |
alert(eventArgs.get_gridColumn().get_element().cellIndex); |
GroupByColumn(eventArgs.get_gridColumn().get_element().cellIndex); |
eventArgs.get_domEvent().cancelBubble = true; |
} |
function GroupByColumn(cellindex) |
{ |
var masterTable = $find("<%= RadGrid1.ClientID %>").get_masterTableView(); |
masterTable.groupColumn("MyColumnName"); |
} |