PDA

View Full Version : How can a EXTJS4 column chart application be rendered in an HTML DIV tag ?



ananthk
29 Jun 2013, 7:32 AM
I have a requirement to integrate JQUERY page and the EXTJS4 Chart be integrated. I have developed the application for charts in EXTJS4. How can i render this with in a DIV tag in an HTML page? renderTo; EXt.get("myDIV") does not work.

skirtle
29 Jun 2013, 8:10 AM
renderTo is the way to go. You may also need to set some width/height values to get it to show up.

Guessing wildly from what little information you've provided, the problem may be using renderTo in an Ext.define with Ext.get, which won't work because the element won't exist at define-time. Try just passing the string id instead of using Ext.get (or, even better, passing renderTo at creation time).

Also make sure you're using Ext.onReady to ensure Ext is ready, it is not sufficient to use the jQuery equivalent.

ananthk
30 Jun 2013, 8:46 AM
renderTO: "mydiv" with double quotes did it. Thanks