This is a migrated thread and some comments may be shown as answers.
rebind grid after windows post
0 Answers 22 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
lydia
Top achievements
Rank 1
lydia asked on 26 Nov 2012, 01:14 PM
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 :

$('#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 
Tags
Window
Asked by
lydia
Top achievements
Rank 1
Share this question
or