The Syncfusion® native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
RRRajapandi Ravi Syncfusion Team March 8, 2021 01:20 PM UTC
Hi Danyelle,
Greetings from syncfusion support
We have analyzed your query and we could see that you like to format the total page number and the total record count. So, based on your requirement we have prepared a sample and achieved your requirement by using dataBound event of Grid. Please refer the below code example and sample for more information.
<script>
functionbound() { //dataBound event of Grid
vartotalPages = document.getElementsByClassName('e-parentmsgbar')[0].querySelector('.e-pagenomsg').innerText.split(' ')[2]; //get the total pagecount
var arr = document.getElementsByClassName('e-parentmsgbar')[0].querySelector('.e-pagenomsg').innerText.split(' ');
var regex = totalPages.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","); //insert commas by using regex
var totalRecord = document.getElementsByClassName('e-parentmsgbar')[0].querySelector('.e-pagecountmsg').innerText.match(/(\d+)/)[0]; //get the total record count
var recordRegex = totalRecord.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","); //insert commas by using regex