Hello,
When we set the height in the grid options in the following manner:
self.options.gridOptions = {
primaryKey: 'JobId', jQueryTemplating: false, rowTemplate: null, autoGenerateColumns: false, width: '100%', height: '480px', urlType: 'remoteUrl', autoAdjustHeight: false, columns: [ ... ], features: [...]
};
and we try to call the following private method: $(self.options.jobsGridSelector + ' table').data("igGridFiltering")._updateFiltersUI(gridSettings.get(self.options.jobsGridSelector).filters);
the selector returns "undefined" and we get this error:Uncaught TypeError: Cannot call method '_updateFiltersUI' of undefined
The use of this private method was advised in the following thread:http://es.infragistics.com/community/forums/p/75870/383316.aspx#383316
We are looking for a way to avoid this issue.
Thank you for your time,Stanislav Radkov
Hi,
this code:
$(self.options.jobsGridSelector + ' table').data("igGridFiltering")
returns undefined, which means there is no igGridFiltering widget associated with it. How do you instantiate the grid? in a TABLE element, on a DIV or in some other way? Maybe you can try this:
$(self.options.jobsGridSelector).data("igGridFiltering")._updateFiltersUI(gridSettings.get(self.options.jobsGridSelector).filters);
Hope it helps. Thanks,
Angel
Hello,Thank you for your quick response.The grid is instantiated in a DIV, but I think this is irrelevant.The issue occurs only when a height is set, both in px or %. When there is no height the following piece of code $(self.options.jobsGridSelector).data("igGridFiltering") returns an object, there are no errors and the filters are updated correctly.Our goal is to set a fixed height to the grid and have a vertical scroll. Please advise us how to avoid this issue or achieve our goal in some other way.Do you need any additional information?Thank you for your time,
Stanislav Radkov