Grid grouping don't show any row

Hi.

I have a grid which work perfectly without grouping feature. If I add grouping feature all rows disappear when make group on any column.

View:

 
                  created="created" locale="@(System.Globalization.CultureInfo.CurrentCulture.Name)" allowPaging="true">

           

           
           
....
                               textAlign="Left" allowEditing="false">
...
     
       
   


If try with  enableLazyLoading="true", allways dm.IsLazyLoad is false.

Controller action is: "public IActionResult UrlDatasource([FromBody] DataManagerRequest dm)" (from exemple grid group lazy)

5 Replies 1 reply marked as answer

SM Shalini Maragathavel Syncfusion Team February 22, 2021 12:44 PM UTC

Hi George, 

Thanks for contacting Syncfusion support.  

Based on your query we suspect that the you are facing an issue in lazy loading with Grouping feature of Grid with localization. So, we have created a sample and tried to reproduce the mentioned issue but it is unsuccessful at our end.  

Please check below sample for your reference, 

Sample: https://www.syncfusion.com/downloads/support/forum/162782/ze/160293101655418838373926.zip

Screenshot:



If you still face the issue please share the below details that will be helpful for us to a provide better solution. 
1)   Share your complete Grid rendering code.  

2)   If possible please replicate the problem with our above attached sample. 

3)   Video demonstration of the issue


Regards,
Shalini M. 


Marked as answer

GI Gige February 23, 2021 12:50 PM UTC

Thank you for support.


SM Shalini Maragathavel Syncfusion Team February 24, 2021 02:03 PM UTC

Hi Venkatesh, 
 
Thanks for the update.

We are glad to hear that the provided solution resolved your query.

Please get back to us, if you need further assistance.


Regards,
 
Shalini M. 
 



JP Joe Piotti February 27, 2023 06:03 PM UTC

I encountered this for a different reason. I didn't realize that the field(s) you use to group by in GridGroupSettings > Columns must also be a column in the grid.

If you set GridGroupSettings.Columns to a key or Id that you don't wish to show, it does not throw an error, or give you any kind of warning. It simply displays no rows, even though you have rows of data in your dataset.




JC Joseph Christ Nithin Issack Syncfusion Team March 2, 2023 03:50 AM UTC

Hi Joe,


Greetings from Syncfusion support.


    By default, In Ej2 Grid, grouping will be performed based on the columns that are defined to the grid. When you try to group the column which is not defined to the grid, the grid will not know the existence of the column. This the reason it is showing no records. If you do not want to show the column in the grid, we suggest you to
define the column to the grid and set column.visible as false for that particular column.


Regards,

Joseph I.


Loader.
Up arrow icon