This question is locked. New answers and comments are not allowed.
Hi!
If you are in ajax mode and you want to rebind your grid by changing a parameter like this:
and then you change the page or just click the refresh button, you will not have the same behavior depending of the version that you use.
With version 2010.3.1318, each ajax request after the rebind will keep the new param value (year = 2001)
With version 2011.1.414, each ajax request after the rebind will not keep the new param. It will use the one that have been used on the initialization of the grid.
Here's the syntax of my grid:
If you are in ajax mode and you want to rebind your grid by changing a parameter like this:
$('#grid').data('tGrid').rebind({ year: 2001 });and then you change the page or just click the refresh button, you will not have the same behavior depending of the version that you use.
With version 2010.3.1318, each ajax request after the rebind will keep the new param value (year = 2001)
With version 2011.1.414, each ajax request after the rebind will not keep the new param. It will use the one that have been used on the initialization of the grid.
Here's the syntax of my grid:
Html.Telerik().Grid<MTO.GIPI.Web.Controllers.Besoins.ViewModels.BesoinIndexGridViewModel>().Name("gridBesoin").BindTo(Model.BesoinGridData.Data).DataKeys(keys => keys.Add(m => m.PublicationId)).Columns(column => { column.Bound(a => a.Intervenant); column.Bound(a => a.Publication); column.Bound(a => a.QuantiteBesoin); column.Bound(a => a.QuantitePremiereLivraison); }).DataBinding(bind => bind.Ajax().Select("GetBesoinIndexGridData", "Besoins", new { searchKeyword = "", year = Model.AnneeInventaire })).Groupable(x =>{ x.Enabled(true); x.Groups(group => group.Add(c => c.Intervenant));}).Pageable(page =>{ page.PageSize(10); page.Total(Model.BesoinGridData.Total);}).Scrollable(scroll => scroll.Height(250)).EnableCustomBinding(true).Render();