Hi all,
Currently i am using iggrid table in our application , is there any possibility to enable or disable "groupBy" feature through UI.
Hoping for the answers soon kindly help .
Hello Munthu,
The igGrid features can be destroyed after the grid is created, but they cannot be created afterwards. You should re-create the grid in order to enable/disable GroupBy feature.
Example:
function recreateGrid(enableGroupBy) {
var features = [];
if (enableGroupBy)
features.add({name: "GroupBy"});
// destroy the previous instance of the grid
$("#grid1").igGrid("destroy");
// recreate the grid
$("#grid1").igGrid({
// put some options here
features: features
});
}
Hope this helps,Martin PavlovInfragistics, Inc.