Kannan AU

Kannan AU

  • NA
  • 57
  • 24.5k

KENDO UI - How to bind the predefined data to data source

Jan 14 2019 8:33 PM
Dear Team,
 
I am new to Kendo UI controller.
in Kendo UI using Jquery, how to bind the pre defined (its static data which has only 3 values, Delivered,Shipped,Onthe way) data in Grid format.
 
For example:-  
thiz.busGrid = thiz.element.find('.i-bus-grid').kendoGrid({
dataSource: new kendo.data.DataSource({
data: data,
schema: {
data: "Items",
model: {
id: "busId"
}
}
}),
columns: [
{
field: "BusName",
horizontalAlign: "left",
headerAttributes: { style: "text-align: left; width: 250px;" },
width: 250,
]
 
 
Please help me 

Answers (1)