Error in pagination

Hi

I am migrating an application made in Vue 2 to Blazor Server

I am using treegrid component. With Vue I get correct number of rows, meanwhile in blazor its wrong...

check the image. The data comes from the same database.



3 Replies 1 reply marked as answer

PK Padmavathy Kamalanathan Syncfusion Team December 14, 2020 02:40 PM UTC

Hi Jose, 
 
Thanks for contacting Syncfusion Forums. 
 
Query: Error in pagination 
 
By default, Blazor Tree Grid work with PageSizeMode as Root. So only the count of root node is shown in the pagination. We suggest you to set the mode as All mode for showing total count of records in pagination. 
 
Please check the below help documentations, 
  
Please check the below code snippet, 
 
  
<SfTreeGrid ID="Grid" DataSource="@DragData" IdMapping="TaskId" ParentIdMapping="ParentId"  
         AllowPaging="true" TreeColumnIndex="1"> 
      <TreeGridPageSettings PageSize="12" PageSizeMode="PageSizeMode.All"></TreeGridPageSettings> 
            </SfTreeGrid> 
 
  
Please check the below screenshot, 
 
 
  
  
Kindly get back to us for further assistance. 
 
Regards, 
Padmavathy Kamalanathan 


Marked as answer

JL jose luis barajas replied to Padmavathy Kamalanathan December 15, 2020 08:13 PM UTC

Hi Jose, 
 
Thanks for contacting Syncfusion Forums. 
 
Query: Error in pagination 
 
By default, Blazor Tree Grid work with PageSizeMode as Root. So only the count of root node is shown in the pagination. We suggest you to set the mode as All mode for showing total count of records in pagination. 
 
Please check the below help documentations, 
  
Please check the below code snippet, 
 
  
<SfTreeGrid ID="Grid" DataSource="@DragData" IdMapping="TaskId" ParentIdMapping="ParentId"  
         AllowPaging="true" TreeColumnIndex="1"> 
      <TreeGridPageSettings PageSize="12" PageSizeMode="PageSizeMode.All"></TreeGridPageSettings> 
            </SfTreeGrid> 
 
  
Please check the below screenshot, 
 
 
  
  
Kindly get back to us for further assistance. 
 
Regards, 
Padmavathy Kamalanathan 


Thanks!
Its working now!


PS Pon Selva Jeganathan Syncfusion Team December 17, 2020 02:48 PM UTC

Hi Jose,   
  
Thanks for the update.    
  
We are glad to hear that query has been resolved by our solution.    
  
Kindly get back to us for further assistance.  
  
Regards,  
Pon selva  
  
  
 


Loader.
Up arrow icon