Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by elango on Jul 27, 2009 20:49
open dhtmlx forum
RE:ASP.NET:Problems while binding vaues

i recieved attached file you sent to me,i go through and reply soon,

For the issue,”(2.)While using script (for create a grid) within "<HEAD></HEAD>" tag an script error showing that " 'this.entBox' is null or not an object".

I follow the step as you replied in mail,

2. This issue occurs because of grid's container object is not created. Probably you should call grid initialization script on body's onload event:
<body onload="doInitGrid()">...</body>
or
<script>
window.onload=function(){
//initialize grid object
}
</script>”

but that not work ,

so, kindly provide a sample html page regarding the query

Regards,

Elango

 

 

Answer posted by Alex (support) on Jul 28, 2009 02:12

Hello,

the example:

<head>
...

 <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> 

<script>
 window.onload=function(){
  mygrid = new dhtmlXGridObject('gridbox');
  mygrid.setImagePath("../../codebase/imgs/");
  mygrid.setHeader("Col 1,Col 2");
  mygrid.setInitWidths("100,100"
  mygrid.setColTypes("ed,ed");
  mygrid.init();
  mygrid.loadXML("some.xml")
}

</script>
</head>

<body>

<div id="gridbox" width="600px" height="300px" style="width:600px;height:300px;background-color:white;"></div>

</body>