Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by hairtha on Sep 17, 2008 23:39
open dhtmlx forum
Initializing html table data into dhtmlxgrid

hi,

I am not able to load html table data in to grid. the following is the code that i used:


<HTML>
 <HEAD>
<script src="codebase/ext/dhtmlxgrid_start.js"></script>

 </HEAD>

<body>
<table class="dhtmlXGrid" id="tblgrid" style="width:400px" lightnavigation="true">
   
        <tr>   
            <td type="ro">Column 1</td>
            <td>Column 2</td>
        </tr>
        <tr>
            <td>value 11</td>
            <td>value 12</td>
        </tr>
        <tr>
            <td>value 21</td>
            <td>value 22</td>
        </tr>

    </table>
 </BODY>
</HTML>

Can anyone please help me.

thanks in advance
haritha
Answer posted by dhtmlx support on Sep 18, 2008 02:50

You need to include other grid related js files as well:

<link rel="STYLESHEET" type="text/css" href="../../codebase/dhtmlxgrid.css">
 
 <script  src="codebase/dhtmlxcommon.js"></script>
 <script  src="codebase/dhtmlxgrid.js"></script>  
 <script  src="codebase/dhtmlxgridcell.js"></script>

 

Also, make sure class name is correct. It should be dhtmlxGrid - lower case "x"