Categories | Question details Back To List | ||
dhxAccordion I have a jsp page called the loginPage.jsp which has a dhtmlxLayout component with 3L Layout. I have attached Accordions dynamcially to the cells (i.e "a' cells) of the dhtmlxLayout by getting a ArrayList in the jsp page. This List gets a list of toplevel menus from my database. Within each accordion I want to display a datagrid with the ArrayList displayed on it based on the List id that I used in displaying the accordions . Here I mean a1, a2,a3 and so on . This should also happen dynamically how do I do it my code looks something like this dhxAccord=dhtmxlayout.cell("a").attachAccordion(); var i; for(i=1;i<=listSize;i++) { dhxAccord.addItems("a"+i,modName); } <script> <c:foreach items="$module.moduleList" var=module varStatus=a> <c:if> </c:if> <input type="hidden" name="modName" value="$module.moduleName"> </c:foreach> </script> Please give a quick reply Answer posted by Alex (support) on Nov 03, 2009 01:30 You can use attachGrid method to attach a grid to an accordion. var grid = dhxAccord.cells("a1").attachGrid(); |