Trupti Chippa

Trupti Chippa

  • NA
  • 13
  • 3.7k

Htttp post and kendo window refresh

Mar 21 2018 8:59 PM
Hi,
 
Below is the code snippet that I wrote which is working, but when decorated with HttpPost verb it's not working.
 
Please let me know your thoughts on it.
 
Example
 
MVC action method
  1. [Httppost]  
  2. [OutputCache(Duration = 0, VaryByParam = "*", NoStore=true)]  
  3. public ActionResult sample([DataSourceRequest]DataSourceRequest request, int ? id)  
  4. {  
  5. respective code will be here and that return view  
  6. return View (Name, layourUrl, viewModel);  
  7. }  
  8. JS  
  9. function edir(id){  
  10. $('body').focus();  
  11. window.setTimeout(function(){  
  12. var window=$("#popup").data("kendoWindow");  
  13. var PopUpTitle="name";  
  14. window.setOptions({  
  15. title:PopUpTitle,  
  16. content:"Loading...",  
  17. height:"620px",  
  18. width:"980px"  
  19. });  
  20. window.refresh({  
  21. url:"/controller/Action_mathod" + id,  
  22. type:"POST"  
  23. });  
  24. window.open();  
  25. window.center();  
Thanks,

Answers (1)