sub_row in dhtmlxgrid

i’m using sub row in dhtmlx grid.Now i want to call server side method on exapansion of row.and the data from serverside method is to be shown in subrow of that row.Is it possible to do it in dhtmlxgrid?



Please provide me proper solution for it.

Here i’m attaching jsp in which i’m creating that grid.







tab_maintain.jsp









<%@ page contentType=“text/html; charset=utf-8” language=“java” import=“java.sql.,java.util.,com.motorola.mwb2.vo.*,com.motorola.mwb2.frontend.actionform.SortSearchForm” errorPage="" %>





                
 


                


                    

                         PO Number

                         Source

                         Part Number

                         Line Amount

                         Supplier Name

                         IN

                         OUT

                         Cancel

                         Facility

                         Buyer Name

                         First Delievry

                         Value To Cancel

                     

                    

                    

                












You can use sub_row_ajax column type, which work in necessary way ( it call a server side method on opening and show response inside panel.

>> maintainGrid.setColTypes("ch,sub_row,
maintainGrid.setColTypes("ch,sub_row_ajax,

maintainGrid.addRow(<%=i+1%>,"0,“some.jsp?content=for”);

On item opening , the related uri - “some.jsp?content=for” - will be called.