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
245
Iggrid reloading
posted

Hello,

Environment: Angular2/Bootstrap/Webpack

I want to reload Iggrid component on change on click on button which is outside of component. I give try to using below code, but it is not working. Can you please provide me any example of angular2 and iggrid where we can refresh grid on click of out side button.

Code used to destroy grid

in class:  {

gridMethods: IgGridMethods

this.gridMethods.dataBind(true);

}

Things i have in gridOptions is as below,

1)datasourceurl

2) autofitLastColumn

3) autoAdjustHeight

4) renderCheckboxes

5) isfilterActive

6) autoCommit

7) responseDataKey

8) autoGenerateColumns

9) dataSource: []

10) columns: columnFun()

11) dataSourceUrl: URL

12) primaryKey

13) dataBinding: function

  • 5513
    Offline posted

    Hello,

    Thank you for using Infragistics forums!

    Calling methods on Ignite UI controls needs to be done in the jQuery UI way. So instead of:

    this.gridMethods.dataBind(true);

    try this:

    $("#" + this.id).igGrid("dataBind");

    (assuming you are storing the id of igGrid's table in the id prop)

    I hope this helps! Please, let me know if you have any other questions or concerns!

    Best regards,

    Stamen Stoychev