No records to display is not displayed when using Group BY in Grid.When removing group by it works as expected. SO let us know how to get this display message when it has Group By and empty data.
Hi Viji,
Greetings from Syncfusion support
After reviewing your query, we could see that No Records to display message was displayed at your end. Based on your query we have prepared a sample by applied grouping with empty data and tried to reproduce your reported problem at our end, but it was unsuccessful. Please refer the below sample and screenshot for more information.
Sample: https://stackblitz.com/edit/react-bedr33-9yx25o?file=index.js
Screenshot:
If you still face the issue, please share the below details that would be helpful for us to provide better solution.
1) Share your complete Grid rendering code, we would like to check your implementation.
2) Share your Syncfusion package version.
3) If possible, please share any issue reproducible sample or try to reproduce the issue with our shared sample.
Regards,
Rajapandi R
Viji,
As per your shared information, we have prepared a sample with 20.4 version as per your application structure and tried to reproduce your reported problem, but it was unsuccessful. Please refer the below modified code example and sample for more information.
|
const groupOptions = { showDropArea: true, showGroupedColumn: true, columns: ['FIELD1'], captionTemplate: '<span>${studentDetail(data)}</span>', };
window.studentDetail = function(args) { return 'Field: ' + args.key + ' ' + 'Count: ' + args.count; }
<GridComponent dataSource={[]} enableVirtualization={true} groupSettings={groupOptions} allowRowDragAndDrop={true} enableColumnVirtualization={true} height={400} ref={g => grid = g} dataBound={hide.bind(this)} toolbar={toolbarOptions} allowGrouping={true} editSettings={editSettings}> <ColumnsDirective> <ColumnDirective field='SNo' headerText='S.No' width='140' validationRules={validationSno} isPrimaryKey={true}></ColumnDirective> . . . . . . . . . . . . . . . . . . . . . . . . . . . </ColumnsDirective> <Inject services={[VirtualScroll, RowDD, Group, Toolbar, Edit]}/> </GridComponent>
|
Sample: https://stackblitz.com/edit/react-yze9kl-aqvshq?file=index.js,package.json
Screenshot:
If you still face the issue, please share any issue reproducible sample or try to reproduce the issue with our shared stackblitz sample.
I fixed the issue and it work as expected. Thanks
Viji,
We are happy to hear that you have found the solution at your end.