Reproduction steps:
Here are two workaround options:
<ClientSettings>
<ClientEvents OnCommand="onCommand" />
</ClientSettings>
function onCommand(sender, args) {
if (args.get_commandName() == "GroupByColumn") {
var tableView = args.get_tableView();
var columnName = args.get_commandArgument();
var col = tableView.getColumnByUniqueName(columnName);
var isColumnGroupable = col._data.Groupable;
if (!isColumnGroupable) {
args.set_cancel(true);
}
}
}
function pageLoad(app, args) {
$('.rgActionButton.rgOptions').on('click', function (e) {
var headerCell = $(this).parents()[0];
var grid = $find('<%= RadGrid1.ClientID%>');
var masterTableView = grid.get_masterTableView();
var col = masterTableView.get_columns()[headerCell.cellIndex];
setTimeout(function () {
if (!col._data.Groupable) {
$('.rgMobileColumnForm').find('.rgButtonGroup').first().hide();
}
else {
$('.rgMobileColumnForm').find('.rgButtonGroup').first().show();
}
})
});
}
Kind regards,
Doncho
Progress Telerik