Posted
on May 9, 2012
(permalink)
Hi,
i've a problem with the mvc grid edit and delete command:
My main view (/Home/Index) contains a MVC Window component, that open a second page (/Home/Detail) by executing the LoadContentFrom method.
Inside this second page there is a Mvc Grid, with edit and delete buttons:
.Columns(cols =>
{
cols.Bound(o => o.Label);
cols.Bound(o => o.P6);
cols.Bound(o => o.P12);
cols.Bound(o => o.P24);
cols.Bound(o => o.P36);
cols.Command(commands =>
{
commands.Edit().ButtonType(GridButtonType.Image);
commands.Delete().ButtonType(GridButtonType.Image);
}).Width(200).Title("test");
}//end cols
) //end Columns
.Editable(editing => editing
.Mode(GridEditMode.InLine))
The problem es that when i click the edit button, i get redirected to the first page(/Home/Index), insted of keeping in the second one
(/Home/Detail) .
I tested the detail page (/Home/Detail) outside the window component and its work ok.
Any help? thank you very much.
UPDATE: I'm using MVC3 and Telerik 2012