Category Archives: ASP MVC

How to set value using jQuery on custom Editor Template of a Kendo Grid

If you neeed to update a field on a Custom Editor template of a Kendo grid using jQuery the only method I found that works is this:

 
var myvar = $("#myid");
myvar.val("newValue");
myvar.trigger("change", { value: myvar.val() });

 

How to use jQuery getJSON in ASP.NET MVC

In order to populate a dropdown control based on selection of another one, I used this code:

on controller I create the method below:

than on the view I used jQuery: