Initialize DHTMLXGrid in ajax sample

I have following workflow.

An OnClick()-Event starts an Ajax-Request (javascript), which call a servlet to get data from a database. The servlet returns a table with html-tags and within data from the database and put it in a div-area. Instead of the table, I want to use your grid. My question: Where and when should I initialize the grid in this workflow? After that, I want to edit data in the grid.

Beforehand php is not allowed.

Thanks and best regards

After table was returned from the server and placed on the page, you can call ( assuming that dhtmlxgrid_start.js used )
where ID - id of table tag.

It will start table-to-grid conversion. … t_inithtml