Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by squatss on Jun 24, 2009 08:15
open dhtmlx forum
this.entbox is undefined

Hi support,

I'm having a problem with the grid.

I'm referenceing the single dhtmlx.js file and calling the followin in javascript:

grd = new dhtmlXGridObject('grdResults');

grdResults is the id of a div within an empty tab. When the javascript executes, it throws an error "this.entbox is undefined" in both ff an ie6.

My first question is should I be attaching a grid to the tab? if not, what have I done wrong?

Cheers

scott
Answer posted by dhxSupport on Jun 24, 2009 08:41
By the time of creating dhtmlxGrid object grid's container shoul be loaded and present in the page DOM structure. Probably you should call grid init methods on "onload" body's event:
<body onload="doInitGrid()">
Answer posted by squatss on Jun 24, 2009 09:28
Spotted my problem in the html.

cheers