Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
No replies
SyedHaiderAbbas
SyedHaiderAbbas
13 Posts
ACCEPTED ANSWER

Pinned topic dojox.grid.DataGrid

‏2012-10-12T07:27:41Z |
I am new to Worklight and Dojo. Currently I trying to develop a mobile application using IBM Worklight Studio 5.0.0.3 along with built-in Dojo toolkit 1.7.2. I tried to add dojox.grid.DataGrid from Palette but didn't see the widget there, so I added "dojox/grid/DataGrid" in "require" and the following code to the page manually:

<table data-dojo-type="dojox.grid.DataGrid" >
<thead>
<tr>
<th field="fieldName" width="200px">Column Name</th>
<th field="fieldName" width="200px">Column Name</th>
</tr>
</thead>
</table>

Also I have ensured that DataGrid.js is placed under dojox/grid directoy, but nothing is being shown. The Chrome browser console error is "GET http://localhost:8080/apps/services/preview/DemoApp/common/0/default/dojox/grid/DataGrid.js 404 (Not Found) ".

Any Help?