Categories | Question details Back To List | ||
grid in cell Hi, Is it possible to add grid in a cell of another grid? Here is my code, mygrid.cells(i, j).cell.innerHTML="<div id='sub_grid'/>"; subgrid = new dhtmlXGridObject('sub_grid'); ... subgrid.init(); Will the subgrid shown in cell(i, j)? Thanks! Answer posted by Support on May 12, 2008 03:03 While grid not purposed to be used in such use-case, your code must not cause any errors, and produce view, where one grid sits inside another grid The grid can init inside any HTML container, and it doesn't matter is it a separate HTML container or a cell inside other grid. By the way, grid supports two built-in solution for subgrids, you can check http://dhtmlx.com/docs/products/dhtmlxGrid/samples/extended_modes/pro_subgrids.html?un=1210587620000 http://dhtmlx.com/docs/products/dhtmlxGrid/samples/interaction_other_components/pro_linked_grid.html?un=1210587653000 |