Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by jacks on Mar 16, 2009 22:06
open dhtmlx forum
subgrid problem

Hi,
I'm facing some problem on the usage of subgrids.Presently,i'm returning a the response in the following format from servlet
sb.append("<rows>");
sb.append("<row id='" + rs.getInt(1) + "'>");
                    sb.append("<cell>" + rs.getString(2)+ "</cell>");
                    sb.append("<cell>" + rs.getString(3) + "</cell>");
                    sb.append("<cell>" + rs.getString(4) + "</cell>");
                    sb.append("</row>");
sb.append("</row>");
This one is a simple one ,now my requirement is I have 3 lists. one for projects and one for reports and one for items.

now i want the following format using 3 lists
---------------------------------------------------------------------------------
project xxx vvv bbb nnnn mmm
reports
items
--------------------------------------------------------------------------------

now maintaing the reports and items list inside the project list.....now in which format i have to set the format and how to use this response data in grid.....please help me.
Answer posted by dhxSupport on Mar 17, 2009 03:59

You can use grid linked to grid. Master grid's column should has "subgrid" type. Please see more information here http://dhtmlx.com/docs/products/dhtmlxGrid/samples/interaction_other_components/pro_linked_grid.html

If you need more examples please contact directly support@dhtmlx.com