Hook Webgrid to HTML Table

Hi,

I try to hook a webdbgrid to an html table via ElementID.
The grid has the same colcount as the html element.
the html element has 2 rows.

At runtime I got the following error:

ERROR
Uncaught TypeError: Cannot read property 'rows' of null | TypeError: Cannot read property 'rows' of null at Object.UpdateGridSize (http://localhost:8000/bestellung/bestellung.js:51936:38) at Object.DoBoundsChange (http://localhost:8000/bestellung/bestellung.js:51627:14) at Object.SetWidth (http://localhost:8000/bestellung/bestellung.js:14613:14) at Object.CreateInitialize (http://localhost:8000/bestellung/bestellung.js:52354:12) at Object.CreateInitialize (http://localhost:8000/bestellung/bestellung.js:62420:62) at Object.CreateWithID (http://localhost:8000/bestellung/bestellung.js:16318:12) at Object.Create$2 (http://localhost:8000/bestellung/bestellung.js:16644:12) at Object.c.$create (http://localhost:8000/bestellung/bestellung.js:295:19) at Object.LoadDFMValues (http://localhost:8000/bestellung/bestellung.js:62598:55) at Object.DoCreate (http://localhost:8000/bestellung/bestellung.js:29533:12)
at http://localhost:8000/bestellung/bestellung.js [304:11]


I do not understand 'the grid has the same colcount as the html element'

In a previous answer I told: the table element should be empty as the grid will  render the table cells into this (empty) HTML table element.

With ?empty? do you mean likr this : <table></table>. No row or col definition?

Yes

Sorry,

that didn't work either.
i define the table like this <table id="test"></table>
and set the element id of the grid to "test".
Same error as above.

Did you have an example?

It is explained in the PDF developers guide p175 what the HTML is to be added to the HTML template.