Reg Grid loading from HTML Table

Dear Team,

I am having a JSP Page inwhich I am trying to have two grids - one being initialized from a HTML table and the other one being loaded from XML File. The Second grid which gets loaded from XML file, gets Loaded and is working fine. But the first Grid which is being initialized from HTML table is not loading properly. Only header is getting loaded and not the rows. Please assist me in getting this resolved.

Please find below the Code :




    /* Big box with list of options /


        position:absolute;    /
Never change this one /

        width:175px;    /
Width of box /

        height:250px;    /
Height of box /

        overflow:auto;    /
Scrolling features /

        border:1px solid #317082;    /
Dark green border /

        background-color:#FFF;    /
White background color /





    #ajax_listOfOptions div{    /
General rule for both .optionDiv and .optionDivSelected /






    #ajax_listOfOptions .optionDiv{    /
Div for each item in list /



    #ajax_listOfOptions .optionDivSelected{ /
Selected item in the list */

































page 1 Page 2 Page 3 Page 4 Page 5

When you create grid form HTML tabe first row is recognized as grid’s header. So in your html grid has only header. If you set no header you shoud call this command before grid init. In this case firs table row still will be recognized as grid’s header but will be hidden.

page 1 Page 2 Page 3 Page 4 Page 5

//put this function into the header

funciton doBeforeInit() {

tab_list.setNoHeader(true); //table’s name is a dthmlxGrid object.


//put this script under the table in the body

Dear Team,

I tried this. But still not getting the Grid. Pls assist me in resolving this issue. Is the problem due to having two grids in a single page ? - one being intiailized through HTML table and other using XML file?


Thanks and regards


You can find sample in your dhtmlxGrid package dhtmlxGrid\samples\initialization_loading\grid_int_from_html.html