Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by kamaraju on Nov 30, 2009 01:19
open dhtmlx forum
Un group/Regroup

We are using , using "mygrid.groupBy(1);" before i do init() ... 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. Even regroup when i send the value it groupBy(val). It doesnt work .Please let me know wat is reason for it.

Answer posted by dhxSupport on Nov 30, 2009 01:42
Try to call mygrid.groupBy(1) after grid was fully loaded:

mygrid.loadXML("../common/grid.xml", function() {
mygrid.groupBy(2);
});
Please check example here http://www.dhtmlx.com/docs/products/dhtmlxGrid/samples/07_extended_modes/01_pro_group.html
Answer posted by kamaraju on Nov 30, 2009 04:12

hi,

            Ya that s working fine . if i need to do later having set of values to regroup it .I am getting error.

and ungroup is also not working .

 

Answer posted by dhxSupport on Nov 30, 2009 04:43
Please contact directly support@dhtmlx.com regarding this issue.