Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by ravi on Feb 16, 2009 21:34
open dhtmlx forum
DataGrid

What exactly I want to say is I does not want to have define div tags for each grid which I am attaching to dhtmlxTabbar in window pop up .I want to write customize or generic method so that I should create div tags dynamically through document.createElement and assign the dynamic div tag to different instantiated dhtmlxGrid object say [dtmlxGrid= new dhtmlxGrid( document.getElementById(dynamicDivId))]and put in tabbar.setContent(document.getElementById(dynamicDivId))
Answer posted by dhxSupport on Feb 17, 2009 02:01
dhtmxGrid cannot be created without attaching to a html container. You can create hidden container (display:none) and then change grid's parent object with method mygrid.attachToObject(document.getElementById(objId)).  You can see example here http://dhtmlx.com/docs/products/dhtmlxGrid/samples/grids_manipulations/attachtoobject_grid.html