We tried using UberGrid with MVC.
Everything works fine, tried the sample provided with the code.
The grid gets loaded displays data. However it still shows the following error in the console:
[COLOR=red !important]Uncaught TypeError: Object #<Object> has no method 'define' ubergrid-all-debug.js:1[/COLOR]
[COLOR=red !important](anonymous function)
[/COLOR]
We did the following changes:
Changed the index.html to include:[COLOR=red !important] [/COLOR] <link href="touch/resources/css/sencha-touch.css" rel="stylesheet" type="text/css" />
<link href="resources/css/ubergrid-all-debug.css" rel="stylesheet" type="text/css" />
<!-- The line below must be kept intact for Sencha Command to build your application -->
<script id="microloader" type="text/javascript" src="touch/sencha-touch-all-debug.js"></script>
<script src="ubergrid/ubergrid-all-debug.js" type="text/javascript"></script>
<script src="app.js" type="text/javascript"></script>
Also, changed the following in app.json:
"js": [
{
"path": "touch/sencha-touch-all-debug.js",
"x-bootstrap": true
},{
"path": "ubergrid/ubergrid-all-debug.js"
},
{
"path": "app.js",
"bundle": true, /* Indicates that all class dependencies are concatenated into this file when build */
"update": "delta"
},{
"path": "data.js"
}
],
did the same for css files.
And added the following to .sencha\app\sencha.cfg[COLOR=red !important] [/COLOR]app.classpath=${app.dir}/app.js,${app.dir}/app,${app.dir}/lib/UberGrid
the lib directory is at the same level as the app directory.
We want to eliminate error on the console. The app however works as expected.
Any clue of what we are doing wrong?[COLOR=red !important] [/COLOR]