{ name: 'CatagoryName', index: 'CatagoryId', width: 200, sortable: true, align: 'center', editable: true, cellEdit: true, edittype: 'select', editoptions: { value : getSequenceNumbers() }, editrules:{required:true} },
function getSequenceNumbers() { $.getJSON("/api/SubCatagory/GetCatagory", null, function (data) { if (data != null) { $.each(data, function (i) { alert(data[i].CatagoryName); data[i].CatagoryId + ':' + data[i].CatagoryName; }) } }); }
public SelectList GetCatagory() { SelectList lstcatagory = ObjRespository.GetListOfCatagory(); return lstcatagory; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)