Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by lcn on Jan 14, 2008 06:24
open dhtmlx forum
Initialize Grid from HTML table

I am using ruby on rails and I am initializing the grid from a html table.
The gird gets initialized but i get the following error

eXcell_ is not defined
[Break on this error] var c = this.getRowById(row_id);var cell=(c._childIndexes?c.childNodes[c._child...
dhtmlXGrid.js (line 202)

Please advise.


Thank you

Answer posted by Support on Jan 14, 2008 06:49
Such error may occur in next two cases

a) You are executing command against not existing cell in grid
b) You specified empty value as column type

In case of initialization from HTML each column set as "ed" by default, but it can be redefined by using type attribute at TD tags of first row

<table....
    <tr>
       <td type="ro">Column 1</td>
       <td>Column 2</td>
    </tr>
    ...

Please be sure that in your case type attribute is not set to empty value.