Frozen column for dhtmlXGridFromTable ?

Hi,



I have a HTML table as a base for a grid and I want to freeze the first column.

Something like this:

var table = new dhtmlXGridFromTable(“myTable”);

table.splitAt(1);



Is this possible ?



Cheers,

Dixie


You can use onbeforeinit table’s attribute to execute splitAt() method.


<table imgpath="…/codebase/imgs/" style=“width:400px” id=“myTable” name=“myTable” onbeforeinit=“initGrid()”>










I tried it that way:

<!— table to convert —>


     
           
           
           
     
     
           
           
           
     
     
           
           
           
     
value 23 Column 2 Column 3
Row 1 - Cell 1 Row 1 - Cell 2 Row 1 - Cell 3
Row 2 - Cell 1 Row 2 - Cell 2 Row 2 - Cell 3





but i get the error: "myTable is not defined"

Any idea ?

Change your code as
<table id=“myTable” name="myTable"

also, myTable.splitAt(0) is an incorrect command, parameter of splitAt must be a valid index value