Hello Every one,
I am using Kendo ui grid in .net core. I have facing one issue in this grid to add comma in paging value. Please review my attached file and let know what is the better solution for adding comma in paging value? Please help me and share code
thanks
4 Answers, 1 is accepted
Hi Asad,
In order to display a comma for the page numbers, I would suggest you to inject that content with JavaScript to the page number link. To do that you could handle the DataBound event of the Grid:
function onDataBound(e) {
var grid = e.sender;
var gridElement = grid.element;
setTimeout(function() {
var pages = gridElement.find('.k-grid-pager .k-pager-numbers .k-link');
pages.each(function(i,page){
var text = $(page).text();
if(text.indexOf(',')) {
$(page).text(text + ',');
}
})
});
},
Here you could find a Dojo sample implementing the above suggestion:
https://dojo.telerik.com/olOGiwoQ
Even if the above implements the jQuery version of the Grid, the approach in .Net Core will be the same.
Regards,
Veselin Tsvetanov
Progress Telerik

Hi Veselin,
It's working fine.
Thank you

Hi Veselin,
We have face another issue in Pie chart. Can you please help me ASAP
https://www.telerik.com/forums/pi-chart-issue-unable-to-show-default-pie-chart?_ga=2.185295403.340598078.1582787542-244125054.1581491271
Hello Asad,
We are aware of the other forum thread that you have opened on the Chart widget. Your question will be handled in the most appropriate manner in the other thread. Please, do not cross-post between different threads with different topics. That is needed in order to keep each thread focused.
Regards,
Veselin Tsvetanov
Progress Telerik