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

Grid PageSizes does not work

9 Answers 60 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Eric
Top achievements
Rank 1
Eric asked on 05 Feb 2013, 03:15 PM


.Pageable(pager => pager.Enabled(true).PreviousNext(true).PageSizes(new Int32[] {10, 20, 50, 100}))

I just downloaded the latest version of the js files and the Kendo.Mvc.dll

If I remove PageSizes I don't get an error. Any clues?

==========================================================================================

Also, when I add .DataSource binding paging stops working entirely

        @(Html.Kendo().Grid(Model.AppointmentList).Name("FailedAppointments")
                .Columns(columns =>
                {
                    columns.Bound(o => o.MemberFirstName).Title("Member First").Width(70);
                    columns.Bound(o => o.MemberLastName).Title("Member Last").Width(80);
                    columns.Bound(o => o.ClientMemberID).Title("Client ID").Width(60);
                    columns.Bound(o => o.ProviderID).Title("Provider ID").Width(60);
                    columns.Bound(o => o.ProviderFirstName).Title("Provider First").Width(70);
                    columns.Bound(o => o.ProviderLastName).Title("Provider Last").Width(100);
                    columns.Bound(o => o.AppointmentDate).Title("Appointment Date").Width(200);
                    columns.Bound(o => o.IHAAppointmentID).Hidden(true);
                })
                .Pageable(page => page.Enabled(true))
                .DataSource(source => source.Ajax().Read(read => read.Action("BindFailedAppointments""AppointmentScheduling")))                                                    
               
This is the result:



If I remove the DataSource binding, paging shows but does nothing. What is going on?

9 Answers, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 05 Feb 2013, 04:31 PM
Hello Eric,

 
I tried to reproduce the described issue with the provided configuration, but to no avail. Could you send us a sample project so we could investigate it further?

Kind regards,
Dimiter Madjarov
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Eric
Top achievements
Rank 1
answered on 05 Feb 2013, 05:37 PM
That would be impossible. This solution is 3 tiered and has at least 30+ projects in it pulling classes from everywhere. It would take 3 days to pull a sample from this solution.

It would be easier if you sent me the sample you have that works so I can see what the differences are on my end.

Thanks
0
Eric
Top achievements
Rank 1
answered on 05 Feb 2013, 10:08 PM
It turns out that kendo.pager.min.js and kendo.grid.min.js had to be included even though I already include kendo.all.min.js
0
Chris
Top achievements
Rank 2
answered on 03 Oct 2016, 09:53 PM
I get this error even with both kendo.pager.min.js and kendo.grid.min.js on the page.
0
Dimiter Madjarov
Telerik team
answered on 04 Oct 2016, 07:32 AM

Hello Chris,

In the general case, including the separate CSS files is not needed. Is this required in your case?

Regards,
Dimiter Madjarov
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Chris
Top achievements
Rank 2
answered on 04 Oct 2016, 12:39 PM

Dimiter,

Are you referring to the JS files? I would prefer to include only the JS files needed and not the entire bundle.

0
Chris
Top achievements
Rank 2
answered on 04 Oct 2016, 12:39 PM
I have been following this post to ensure I am including what I need: http://docs.telerik.com/kendo-ui/intro/supporting/scripts-general
0
Chris
Top achievements
Rank 2
answered on 04 Oct 2016, 12:53 PM
I am receiving the same error even when including kendo.all.min.js versus the separate JS files.
0
Dimiter Madjarov
Telerik team
answered on 05 Oct 2016, 07:41 AM

Hello Chris,

Can you list the exact JS files that are currently included, so we could investigate the problem further?

I am looking forward to hearing from you.

Regards,
Dimiter Madjarov
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Eric
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Eric
Top achievements
Rank 1
Chris
Top achievements
Rank 2
Share this question
or