Hi,
I am commenting out this line in the declarative section
//.Load("onChartLoad")
Now I am trying to programmatically call the same in ready function
$(document).ready(function () {
var chartObj = $("#ejChart").ejChart("instance");
onChartLoad(chartObj);
});
But I am getting the following error:
ej.web.all.min.js:10 Uncaught ejChart: methods/properties can be accessed only after plugin creation
Error: ejChart: methods/properties can be accessed only after plugin creation
at t.throwError (http://localhost:65480/Scripts/ej/ej.web.all.min.js:10:27404)
at x.n.fn.(anonymous function) [as ejChart] (http://localhost:65480/Scripts/ej/ej.web.all.min.js:10:21413)
at HTMLDocument.<anonymous> (http://localhost:65480/:48:38)
at c (http://localhost:65480/Scripts/jquery-1.10.2.min.js:21:26036)
at Object.fireWith [as resolveWith] (http://localhost:65480/Scripts/jquery-1.10.2.min.js:21:26840)
at Function.ready (http://localhost:65480/Scripts/jquery-1.10.2.min.js:21:3305)
at HTMLDocument.q (http://localhost:65480/Scripts/jquery-1.10.2.min.js:21:717)
Where and how do I call the function programmatically instead of declarative style?
Thanks,
Deepak