Currently, I am seeking guidance on how to persist grouping settings on an Ajax bound Telerik ASP .NET MVC grid. My goal is to have the grid display revert back to its previous settings when a user navigates away to a detail screen and then returns to the grid. While sorting and filtering are functioning correctly, I am encountering difficulties with the grouping settings. Despite searching through various posts on the telerik forums, I have yet to find a satisfactory solution. At present, my approach involves saving the grid settings to the session and then restoring them when the grid .aspx page loads via the onLoad Event triggered before the ajax call that fetches the grid data.
function onLoad()
{
$('#DebtLoanGrid').find('.t-no-data td').text('Loading Data...');
var grid = $('#DebtLoanGrid').data('tGrid');
grid.orderBy = "<%= ViewData["DebtLoanGrid-orderBy"] %>";
grid.filterBy = "<%= ViewData["DebtLoanGrid-filterBy"] %>";
grid.groupBy = "<%= ViewData["DebtLoanGrid-groupBy"] %>";
}
I welcome any examples or suggestions that may help in solving this issue.