This is a migrated thread and some comments may be shown as answers.

Kendo Grid UI for MVC page number dropdown not working

3 Answers 395 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Medhanie
Top achievements
Rank 1
Veteran
Medhanie asked on 15 Jul 2020, 06:49 PM

Hi,

I've Kendo Grid UI for MVC in my current MVC.NET project and there is a dropdownlist at the bottom of the grid, which, I believe is supposed to display page numbers, but currently this dropdownlist is getting only value "1" regardless of how many page I have.

 

I have attached a screen shot of the page for further clarification, 

 

I want to fix this by binding the correct number of pages I am displaying and refresh the grid upon dropdownlist selection is changed.

 

Looking for assistance asap

 

Thank you

3 Answers, 1 is accepted

Sort by
0
Medhanie
Top achievements
Rank 1
Veteran
answered on 15 Jul 2020, 06:54 PM
0
Ivan Danchev
Telerik team
answered on 17 Jul 2020, 02:27 PM

Hello Medhanie,

The misalignment of the pager buttons, the position of the dropdown and its appearance lead me to believe there is problem with the theme styles being properly applied. This could be due to incorrect loading of the theme, or could be caused by custom CSS.

Attached you can find a screenshot showing the proper appearance of the pager. Also attached is the sample MVC project I took the screenshot in. I would suggest running it an checking the way the Kendo CSS files are loaded in the _Layout:

<link href="https://kendo.cdn.telerik.com/2020.2.617/styles/kendo.common.min.css" rel="stylesheet" type="text/css" />
<link href="https://kendo.cdn.telerik.com/2020.2.617/styles/kendo.metro.min.css" rel="stylesheet" type="text/css" />

You can then verify whether there is any difference in that regard with the files loaded in your project.

Additionally, if you have custom CSS either in other loaded CSS files, or in the view, you can remove it temporarily, in order to check whether this fixes the issue. If by doing so you are unable to identify what is causing the appearance issue, modify the attached example so that it demonstrates the issue and attach it back for further review.

Regards,
Ivan Danchev
Progress Telerik

0
Medhanie
Top achievements
Rank 1
Veteran
answered on 20 Jul 2020, 04:08 PM

Hi Ivan,

 

Thanks for your help, after I upgrade to 2020.2.617, its all good now.

 

Thanks again for your support

Tags
Grid
Asked by
Medhanie
Top achievements
Rank 1
Veteran
Answers by
Medhanie
Top achievements
Rank 1
Veteran
Ivan Danchev
Telerik team
Share this question
or