Is there any way to change from a detailview to a groupview in a Datagrid using a button - as you can do to change the records displayed.
For example the code code below does not give an error and changes the server data source, but it does not show any grouping.
function group () {
alert("Grouped");
$('#dg').datagrid({
url:'get_users_filtered.php',
view: groupview,
groupField: firstname,
groupFormatter:function(value,rows){
return value + ' - ' + rows.length + ' Items';
}
});
}
What am I doing wrong ? Thanks.