Can I apply same data source for kendo grid and chart without using shared datasource -


i have kendo grid , chart in application.i using shared data source both grid , chart.but want use same datasource both grid , chart without using shared datasource.i want bind result of grid chart datasource.is possible?if possible how that?if 1 know please me..

well if not want use shared datasource have use different datasource same configuration object. guess trying stay dry.

to can use same configuration object in both places. e.g.

var configds = {                         type: "odata",                         transport: {                             read: "..."                         },                         schema: {                             model: {                                 fields: {                                     ...                                 }                             }                         },                         pagesize: 20,                         serverpaging: true,                         serverfiltering: true,                         serversorting: true                     }  $("#grid").kendogrid({        datasource: configds         //other options grid   }) $('#chart').kendochart({        datasource:configds       //other options chart }) 

Comments