or
<
div
class
=
"k-edit-label"
>
<
label
for
=
"ColName"
>Site</
label
>
</
div
>
<
input
name
=
"ColName"
data-source
=
"ColNameDataSource"
data-text-field
=
"colName"
data-value-field
=
"dartSiteName"
data-bind
=
"value:ColName"
data-role
=
"dropdownlist"
/>
$.ajax({ type: "POST", dataType: "json", data: unwindDataToPostObj, url: direction }) .done(function (response) { var grid = $("#gridAssoc").data("kendoGrid"); grid.dataSource.data(response); grid.refresh(); }) .fail(function (jqXHR) { console.log("error"); });
// ** Grid widget $("#gridAssoc").kendoGrid({ dataSource: CFDUnwind._assocTradesDataSource, navigatable: true, selectable: "single", height: 300, resizable: true, sortable: { mode: "single", allowUnsort: false }, columns: [ { field: "Strategy", title: "Strategy", width: 60 }, { field: "ImagineSNum", title: "ImagineSNum", width: 50 }, { field: "TradeDate", title: "Trade Date", width: 48, template: '#= kendo.toString(TradeDate,"MM/dd/yyyy") #' }, { field: "SetlDate", title: "Settle Date", width: 48, template: '#= kendo.toString(SetlDate,"MM/dd/yyyy") #' },...etc....