Thursday, 15 January 2015

KendoUI chart datasource from grid datasource with JQuery won't render -



KendoUI chart datasource from grid datasource with JQuery won't render -

what trying dynamically render chart based on contents of kendoui crid on page. happen within databound event of grid. when seek code below seems space of gchart allocated on page nil rnders. can see through firebug datasource info in chart. can see legend chart render no chart. should mention there no model passed chart. tried hardcoding test info , setiing datasource , still no rendering of chart.

function ondatabound(arg) { griddatasource = arg.sender.datasource; if (griddatasource.group().length > 0) { var thechart = $("#chart").data("kendochart"); thechart.options.series[0].field = "valval_alt_cmb_amt"; thechart.options.series[0].categoryfield = "rcd_num"; thechart.options.series[0].data = griddatasource._data; thechart.refresh(); } }

i found reply problem - not set datasource grid chart. needed first create anew datasource , set info property within info grid... setdatasource on chart , worked

jquery charts grid datasource kendo-ui

No comments:

Post a Comment