Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
60
How to enable or disable "groupBy" feature through UI
posted

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 .

Parents
No Data
Reply
  • 23953
    Offline posted

    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 Pavlov
    Infragistics, Inc. 

Children
No Data