This question is locked. New answers and comments are not allowed.
Hi,
On Grid, I add detail DetailView with a Grid that have Commands, commands on Detail grid are called twice when i click on button.
For example my View :
Action("MonterGroupe", "Partenaires") will be called twice on button click.
The two called are called with same parameters. but sometimes (random mode ?) I have only one call to Controller Method.
Is someone has find this problem and find a solution ?
Version : 2011.3.115 of telerik MVC extensions.
Thanks
On Grid, I add detail DetailView with a Grid that have Commands, commands on Detail grid are called twice when i click on button.
For example my View :
@(Html.Telerik().Grid<GroupePartenaire>() .Name("pagesgrid") .Columns(columns => { columns.Bound(x => x.IdInt) .Title("Id"); columns.Bound(x => x.Title) .Title("Titre"); columns.Command(commands => commands .Custom("pagesgrid") .Text("Monter") .DataRouteValues(route => route.Add(o => o.Id).RouteKey("Id")) .Ajax(true) .Action("MonterGroupe", "Partenaires")) .HtmlAttributes(new { style = "text-align: center" }); }) .DetailView(detailView => detailView.ClientTemplate( Html.Telerik().Grid<Partenaire>() .Name("Partenaires_<#= Id #>") .Columns(columns => { columns.Bound(x => x.IdInt) .Title("Id"); columns.Bound(x => x.Title) .Title("Nom"); columns.Command(commands => commands .Custom("Partenaires_<#= Id #>") .Text("Monter") .DataRouteValues(route => route.Add(o => o.Id).RouteKey("Id")) .Ajax(true) .Action("MonterPartenaire", "Partenaires")) .HtmlAttributes(new { style = "text-align: center" }); }) .DataBinding(dataBinding => dataBinding.Ajax().Select("ListePartenaires", "Partenaires", new { groupePartenaireId = "<#= Id #>" })) .Pageable() .ClientEvents(events => events.OnCommand("onCommand").OnComplete("onComplete")) .ToHtmlString())) .Pageable(settings => settings.PageSize(20).Position(GridPagerPosition.Both)) .DataBinding(dataBinding => dataBinding.Ajax().Select("ListeGroupes", "Partenaires")) .EnableCustomBinding(true))Action("MonterGroupe", "Partenaires") will be called twice on button click.
The two called are called with same parameters. but sometimes (random mode ?) I have only one call to Controller Method.
Is someone has find this problem and find a solution ?
Version : 2011.3.115 of telerik MVC extensions.
Thanks