mercredi 2 décembre 2015

Send object in window.refresh kendo grid mvc

in javascript I want to send object in refresh for kendowindow

var object = {
            Number: "dfs",
            Id : 1,
            SelectedId:"dsf"
        }

var window = $("#Window").data("kendoWindow");
        window.refresh({
            url: url,
        data: {
            item: object
        }
    });

Model:

public class Weight
{
   public string Number { get; set; }
   public int Id { get; set; }
   public string SelectedId { get; set; }
}

parameteres are null

public ActionResult Update(Weight item)
{
}

how i can send object to server correctly?

Aucun commentaire:

Enregistrer un commentaire