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
765
Add/Remove features on client side at runtime
posted

Hi

I'm working with the version 2012.1, y have two views with iggrid for the same information, but one have a feature RowSelectors with CheckBoxs, now i'm simplifyng the two views to a single.

but i need add/remove the feature depending on the selection in a igCombo.

I try several options but none has worked for me, something important to note is that I'm creating the grid from the controller and the data I'm passing the json.

 

I hope anybady help me!!

thanks in advance!!

 

Regards

Christhian Villa

  • 23953
    Suggested Answer
    Offline posted

    Hi Christhian,

    Adding features to igGrid needs the grid to be recreated, removing features doesn't(just use feature's destroy method).

    The best way for you will be to handle igGrid creation on the client and recreate it when igCombo changes selection (selectionChanged event). In igGrid Row Selectors Basic sample you can see how the grid is recreated on client depending on the selected checkboxes.

    As you're using json for data binding you should set DataSourceUrl in your igGrid client configuration.

     

    Hope this helps,

    Martin Pavlov

    Infragistics, Inc.