How to persist grouping settings on an Ajax bound Telerik MVC Grid
I am looking for an example of how to persist grouping settings on an Ajax bound Telerik ASP .NET MVC grid. What I am trying to do is set the grid display back to it's previous settings if someone navigates away to a detail screen and then navigates back to the grid. I currently have both sorting and filtering working but the grouping settings is giving me trouble. I have reviewed several posts on the telerik forums and have not found a good solution. My current process saves the grid settings to the session and then re-constitutes them when the grid .aspx page is loaded via the onLoad Event that fires prior to the ajax call that loads the grid data.
function onLoad()
{
$('#DebtLoanGrid').find('.t-no-data td').text('Loading Data...');
var g开发者_Go百科rid = $('#DebtLoanGrid').data('tGrid');
grid.orderBy = "<%= ViewData["DebtLoanGrid-orderBy"] %>";
grid.filterBy = "<%= ViewData["DebtLoanGrid-filterBy"] %>";
grid.groupBy = "<%= ViewData["DebtLoanGrid-groupBy"] %>";
}
I am open to any examples or suggestions.
I have discussion thread on telerik forum get it solved Please have a look at this thread
精彩评论