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://ko.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
The use of a table element made the difference. Now the private method is called without any problems. I think this will solve our problems. Thank you!Stanislav R
Ok, i see. what is the value of self.options.jobsGridSelector?
It does matter whether the grid is instantiated on a div or on a table. I would suggest to instantiate on a table, and have the selector like this:
$(self.options.jobsGridSelector).data("igGridFiltering")
in that case it shouldn't matter if there is height set or not. The height might make a difference because there is an extra scrolling container rendered , but those are internal details : ) You can also have a look at this link:
http://help.infragistics.com/Help/NetAdvantage/jQuery/2012.2/CLR4.0/html/Known_Issues_and_Limitations_2012_Volume_2.html#_Ref321736823
Hope it helps. Let me know if i can help further. 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
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,