Hi,
I am using Infragistics with TypeScript and I read that remote paging and remote GroupBy working together is a known limitation. But do you have any plan to fix it? Our customers need GroupBy as a required feature.
I am firing custom events when page changes and groupby changes (with a custom call to the server) so I can even specify it as local. I am getting the data by setting those to local and it is still not working properly.
This is my gridoptions:
protected DefaultGridOptions: IgGrid = { autoCommit: true, autofitLastColumn: true, autoGenerateColumns: true, renderCheckboxes: true, autoAdjustHeight: true, showFooter: true, avgRowHeight: "25px", defaultColumnWidth: "*", fixedHeaders: false, responseDataKey: "result", features: [ { name: "Resizing", deferredResizing: false, allowDoubleClickToResize: true }, { name: "ColumnMoving", addMovingDropdown: false, }, { name: "Selection", persist: true, multipleSelection: true }, { name: "Sorting", type: "local", mode: "multi", columnSorting: async (evt, ui) => { await this.SortGrid(evt, ui); } }, { name: "Filtering", type: "local", persist: false, showEmptyConditions: true, filterDropDownItemIcons: true, dataFiltering: async (evt, ui) => { await this.FilterGrid(evt, ui); } }, { name: "Paging", type: "local", pageSize: 40, pageCountLimit: 5000, showPageSizeDropDown: false, recordCountKey: "totalRecords", pageSizeUrlKey: "pageSize", pageIndexUrlKey: "pageNumber", pageIndexChanging: async (evt, ui) => { await this.PageChange(evt, ui); } }, { name: "GroupBy", type: "local", groupByDialogContainment: "window", groupedColumnsChanged: async (evt, ui) => { await this.GroupByGrid(evt, ui); }, initialExpand: false } ] };
Once I receive the data I am doing this:
$.igGrid("dataSourceObject", { result: (data), totalRecords: (total records) }); $.igGrid("dataBind");
Once all this happens, the total number of pages only shows "1" and does not show the actual number of pages as per the total record count.
How do I fix this?
Thanks.
Hello Mohammed,
Thank you for posting in our community.
At this point, as stated in our Known Issues and Limitations topic, remote GroupBy does not work as expected with Remote Paging.In order to state that you would like to see these two features working together my suggestion is submitting a new product idea on our ideas web site.There are many benefits to submitting a product idea:
Steps to create your idea:
The Product Idea site puts you in the driver’s seat and allows you to track the progress of your ideas at any time, see how many votes it got, read comments from other developers in the community, and see if someone from the product team has additional questions for you.
Thank you for using Infragistics component.
Is this not a fix?
https://github.com/IgniteUI/ignite-ui/pull/963
Thank you for getting back to me.
The pull request that you mentioned fixes the issue to some extend, however, there still might be some side effects of using these two features together and this is the reason why this limitation is still listed.
In order to ensure your issue is addressed correctly I created a sample using the provided configuration. With local mode of the features everything is working as expected. Can you please test this sample on your side and let me know how it behaves. If this is not an accurate demonstration of what you are trying to achieve please feel free to modify my sample and send it back to me with steps to reproduce and any additional information that you consider relevant.
Please do not hesitate to contact me if you have any additional questions regarding this matter.
2705.igGridPagingGroupBy.zip