data binding - Apply the Grid Changes in Chart without using SharedDateSource? -
in project having same data-source grid , chart, need display data on chart in page load , display grid data in button click.
but used shared data-source can apply grid changes in chart. used separate variable grid , chart , apply "autobind=true"
chart , "autobind=false"
both not working , grid changes has apply chart.
how give relation both grid , chart?
var shareddatasource = new kendo.data.datasource({ type: "odata", transport: { read: "http://demos.kendoui.com/service/northwind.svc/orders" }, schema: { model: { fields: { orderdate: { type: "date" } } } } }); var datasource = new kendo.data.datasource({ type: "odata", transport: { read: "http://demos.kendoui.com/service/northwind.svc/orders" }, schema : { model: { fields: { orderdate: { type: "date" } } } } });
using shared datasource correct approach. here fiddle fixed code meeting requirements : http://jsfiddle.net/vojtiik/kappg/2/. autobind property expects boolean not string (eg.: true not "true").
autobind: true,
Comments
Post a Comment