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
35
IGrid events does not work after refreshing Data
posted

Hi,

I am having issues with events after refreshing datasource, I tried to different ways based on:

https://stackoverflow.com/questions/13294447/reloading-infragistics-grid

https://ko.infragistics.com/community/forums/f/ignite-ui-for-javascript/66631/refresh-data-in-grid

I am using a json data model which also has some igCombo columns which are set up on demand

$('#Grid).igGrid('dataBind'); //works refresing grid with current model, but the following events dont work after using this line of code. I also tried creating again the whole grid (without using destroy)

activeRowChanged (grid)

itemsRendered (igCombo column)

selectionChanged (igCombo column)

I also have updating/add/delete features

name: 'Updating',
enableAddRow: true,
enableDeleteRow: true,
editMode: 'row',

None of them work after calling dataBind again, nor creating grid again

$(lGrid").igGrid({
            dataSourceType: 'json',
            dataSource: Details,
            primaryKey: "id",
            featureChooserIconDisplay: "always",
            autoGenerateColumns: false,
            autoGenerateLayouts: false,
            rowVirtualization: true,
            virtualizationMode: "continuous",
            autoCommit: true,
            width: "100%",
            height: "800px",
            columns: columns,
            features: features
        });

Parents
No Data
Reply
  • 530
    Offline posted

    Hello cristian,

    Based on the grid configuration provided, I created a sample application. After calling igGrid's dataBind method, the events you mention work on my end. Would you check if the sample works as expected? If additional configuration is required, would you share the information?

    2671.igGrid_combo.zip

Children
No Data