This question is locked. New answers and comments are not allowed.
hi,
i want to know if there is a solution for my issue
i have a view used to edit informations.
in this view i insert a partiel view wich contains a grid , in that grid i want to custom the delete action .so when the Custom delete button is clicked i display a window .
this window contains a combobox ( list the reasons of suppression) and the button 'validate' .when the button is clicked i post the row's key and the reason to the controlleur action by javascipt function :
my action look like this
but the problem is that grid is not rebinded automaticly
is there another solution for my issue
(i used telerik mvc extensions)
thanks
i want to know if there is a solution for my issue
i have a view used to edit informations.
in this view i insert a partiel view wich contains a grid , in that grid i want to custom the delete action .so when the Custom delete button is clicked i display a window .
this window contains a combobox ( list the reasons of suppression) and the button 'validate' .when the button is clicked i post the row's key and the reason to the controlleur action by javascipt function :
$('#feedback-form').submit(function (e) {
var data = $(this).serialize();
$.post(this.action, data, function () {
});
e.preventDefault();
});
my action look like this
public ActionResult DeleteChieldP(int? key, string motifcbx)
{
if (key.HasValue)
{
if (EmployeeChildren.FoundChild(key.Value))
{
EmployeeChildren.DeleteChild(key.Value, motidcbx);
}
}
return new HttpStatusCodeResult(204);
}
but the problem is that grid is not rebinded automaticly
is there another solution for my issue
(i used telerik mvc extensions)
thanks