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?



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:

Spotted my problem in the html.