dhtmlXGridFromTable

Hey,



I am trying your dhtmlXGrid and since i already have almost everything in my app in html table format i am trying to use dhtmlXGridFromTable function.

It works ok when using:



but when i try to sort i get “cell has no properties” error.



Also, how can i initialize everything from html table and be able to use all the functionalities…

I tried the following but it doesn’t seam to work.

var mygrid = new dhtmlXGridFromTable(‘tblToGrid’);

mygrid.setHeader(“Column A, Column B”);

mygrid.setInitWidths(“100,100”)

mygrid.setColAlign(“right,left”)

mygrid.setColTypes(“ro,ed”);

mygrid.setColSorting(“int,str”);

mygrid.init();



Can you please giude me(probably the 2 issues are related), and btw it’s a really cool tool





Sincerely,

but when i try to sort i get “cell has no properties” error.
most probably you have some empty cell which can’t be correctly processed, to resolve problem try to add next attribute to table tag
    <table id=“tblToGrid” class=“dhtmlxGrid”  forceCellTypes=“true”
if problem still occurs - please provide full html code of problematic table

>>I tried the following but it doesn’t seam to work.
While initialization grid from table all configuration taken from table
<table id=“tblToGrid”
   


          Column A

Also please beware that if you plan to init grid by dhtmlXGridFromTable , you must not set dhtmlxGrid css class on container