Categories | Question details Back To List | ||
unGroup Hi, We had posted a questiong regarding loading using xmlB format before and the answer worked, now we are facing a new issue while grouping and ungrouping on a column. We are, initially in doinit() function, using "mygrid.groupBy(1);" ... This is working fine. We have attached a button below the grid with title as "Ungroup" and attached a function to it's onclick event.... In the function we have written mygrid.unGroup(); this does not work. The grid does not get loaded when we click the button. We have tried various trhings, also tried loading the data again from xml inside this function... this is also not working... I suspect we are getting this issue because of using xmlB format. Pls help us with the same. Thanks and Regards, Vartika Answer posted by Support on Jul 28, 2008 02:38 The group|ungroup functionality works against already parsed data, so it is not related to incoming data format. Please beware that call of mygrid.unGroup(); in moment, when grid structure not initialized yet, may result in JS error. If problem still occurs for you - please provide any kind of sample where issue can be reconstructed. Answer posted by vartika vaish on Jul 28, 2008 04:52 Hi, We had seen this use groupBy function after init in lots of posts and had been aware of this. I am attaching the code here and would ask you to kindly have a look at it and see where are we going wrong. Regards, Vartika Attachments (2) Answer posted by Support on Jul 28, 2008 05:50 Working sample with same init sent by email. The code, attached to previous post, has a problematic code - it uses SmartRendering and Grouping in same time, but such modes are mutual exclusive http://dhtmlx.com/docs/products/dhtmlxGrid/doc/compatibility.html#grid_fcompatibility Answer posted by vartika vaish on Jul 28, 2008 20:11 Thank you so much :) |