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 /
#ajax_listOfOptions{
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 /
text-align:left;
font-size:0.9em;
z-index:100;
}
#ajax_listOfOptions div{ / General rule for both .optionDiv and .optionDivSelected /
margin:1px;
padding:1px;
cursor:pointer;
font-size:0.9em;
}
#ajax_listOfOptions .optionDiv{ / Div for each item in list /
}
#ajax_listOfOptions .optionDivSelected{ / Selected item in the list */
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.
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?