Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Jonathan Hawkins on Jun 22, 2007 17:07
open dhtmlx forum
Rows will not display

I am using this definition

<script>

mygrid = new dhtmlXGridObject('gridbox');

mygrid.setImagePath("../imgs/");

mygrid.setHeader("Loading");

mygrid.setInitWidths("*");

mygrid.setDateFormat("dd/mm/yyyy");

mygrid.init();

mygrid.loadXML("../grid.xml");

mygrid.setSizes();

</script>

and this XML

<rows>

<head>

<column width="50" type="ro" align="right" sort="str">Trans. Ids</column>

<column width="150" type="calendar" align="left" sort="date">Date</column>

<column width="100" type="coro" align="left" sort="str">Type

<option value="0a04017301194a34937bce10bd9ad4a8">EmptyTest</option>

<option value="0a040081011c9a97d064725022fbc20f">Card Log</option>

<option value="0a0201620189a6050e265d04ae0236b7">PCR Transaction</option>

<option value="0a040081006b52a1a461dcaf21bb0673">OTHER</option>

<option value="0a04008101c7e176fb4d6acde66d3be6">CAR</option>

</column>

<column width="100" type="ed" align="left" sort="str">Description</column>

<column width="0" type="ed" align="left" sort="left">null</column>

<settings><colwidth>px</colwidth>

</settings>

</head>

<row id="1135">

<cell>1135</cell>

<cell>06/06/2007</cell>

<cell>0a040081006b52a1a461dcaf21bb0673</cell>

<cell>A new claim for Admin Admin</cell>

<cell></cell>

</row>

<row id="192">

<cell>192</cell>

<cell>06/06/2007</cell>

<cell>0a040081006b52a1a461dcaf21bb0673</cell>

<cell>A new claim for Admin Admin</cell>

<cell></cell>

</row>

<row id="455">

<cell>455</cell>

<cell>06/06/2007</cell>

<cell>0a040081006b52a1a461dcaf21bb0673</cell>

<cell>A new claim for Admin Admin</cell>

<cell></cell>

</row>

</rows>

but I only get the column headers displayed, any assistance greatly appreciated.

Answer posted on Jun 25, 2007 12:30
I reconstructed you sample locally and it works correctly, the only thing which need to be checked - do you included all necessary js files ?
The js code for "calendar" excell stored in separate js file - dhtmlxGrid_excell_calendar.js  - and if it was not included the rendering will stoped after drawing headers ( same as in your case )

    <script>_css_prefix="../css/"; _js_prefix="../js/"; </script>
    <script  src="../js/dhtmlXGrid_excell_calendar.js"></script>

please check samples/calendar.html




Answer posted by Jonathan Hawkins on Jun 25, 2007 16:17

I ran the same code in Firefox and saw this error

aeditor.setValue is not a function
_fillRow(tr, ["1135", "1135", "A new claim for Admin Admin", 1 more...])dhtmlXGrid.js (line 294)
_fillRowFromXML(tr, row, -1, null)dhtmlXGrid.js (line 329)
_innerParse([row, row, row], 0, -1, null, 0)dhtmlXGrid.js (line 332)
parseXML(Document , 0)dhtmlXGrid.js (line 321)
loadXMLString("<rows><head><column width="50" type="ro" align="right" sort="str">Trans. Id</column><column width="1...")dhtmlXCommon.js (line 9)
loadXMLString("<rows><head><column width="50" type="ro" align="right" sort="str">Trans. Id</column><column width="1...", undefined)dhtmlXGrid.js (line 40)
setGridSize()RequestCommandSer... (line 482)
loaded()dojo.js (line 494)
callLoaded()dojo.js (line 574)
modulesLoaded()dojo.js (line 566)
dj_load_init(load )dojo.js (line 1374)
aeditor = this.cells4(r.childNodes[i]);aeditor.setValue(val)
Answer posted on Jun 27, 2007 15:56
This is pretty strange error.  It means that exCell editor was created by has not setValue methods, but such method must present in all exCells, nested from base editor.
The only idea which I have - the problem can be caused by order of js files. The dhtmlxGridCell.js, which contains base exCell object need to be included before any additional excell files.
Answer posted by sematik (Support) on Dec 01, 2014 20:27

Not much can be said in addition to the reply above, but you also can check javascript ui library and html 5 menu and find out what we have probably missed in our explanation.