Categories | Question details Back To List | ||
Filtering in main grid with subgrid Hello, is it posible to use filtering in main grid with sub grids? If yes can you show me how? I try this: mygrid = new dhtmlXGridObject('gridbox'); mygrid.setImagePath("../../codebase/imgs/"); mygrid.setHeader("A,B,ed,Price,In Store,Shipping,Bestseller,Date of Publication"); mygrid.attachHeader(" ,#combo_filter,#text_filter, ,#cspan,#cspan,#cspan,#cspan"); mygrid.setInitWidths("50,150,100,80,80,80,80,200") mygrid.setColAlign("right,left,left,right,center,left,center,center") mygrid.setColTypes("sub_row,edtxt,ed,price,ch,co,ra,ro"); mygrid.init(); mygrid.setSkin("modern"); mygrid.loadXML("sgrid.xml"); but only grey line with text "#combo_filter,#text_filter" is added to the header. Answer posted on Oct 20, 2009 02:27 >>is it posible to use filtering in main grid with sub grids There is no possibility to use filtering in main grid with sub grid's. You can try to use dhtmlxTreeGrid extension. It has more advanced parent-child functionality. Please find example here http://www.dhtmlx.com/docs/products/dhtmlxTreeGrid/samples/04_grid_operations/02_treegrid_filtering.html >>but only grey line with text "#combo_filter,#text_filter" is added to the header. You should attach dhtmlxgrid_filter.js file to your page. |