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))

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 … _grid.html