Grid PageSizes does not work

10 posts, 0 answers
  1. Eric
    Eric avatar
    57 posts
    Member since:
    Aug 2012

    Posted 05 Feb 2013 Link to this post



    .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?
  2. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2159 posts

    Posted 05 Feb 2013 Link to this post

    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!
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Eric
    Eric avatar
    57 posts
    Member since:
    Aug 2012

    Posted 05 Feb 2013 Link to this post

    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
  5. Eric
    Eric avatar
    57 posts
    Member since:
    Aug 2012

    Posted 05 Feb 2013 Link to this post

    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
  6. Chris
    Chris avatar
    8 posts
    Member since:
    Jul 2015

    Posted 03 Oct Link to this post

    I get this error even with both kendo.pager.min.js and kendo.grid.min.js on the page.
  7. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2159 posts

    Posted 04 Oct Link to this post

    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
  8. Chris
    Chris avatar
    8 posts
    Member since:
    Jul 2015

    Posted 04 Oct in reply to Dimiter Madjarov Link to this post

    Dimiter,

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

  9. Chris
    Chris avatar
    8 posts
    Member since:
    Jul 2015

    Posted 04 Oct in reply to Dimiter Madjarov Link to this post

    I have been following this post to ensure I am including what I need: http://docs.telerik.com/kendo-ui/intro/supporting/scripts-general
  10. Chris
    Chris avatar
    8 posts
    Member since:
    Jul 2015

    Posted 04 Oct in reply to Chris Link to this post

    I am receiving the same error even when including kendo.all.min.js versus the separate JS files.
  11. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2159 posts

    Posted 05 Oct Link to this post

    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
Back to Top
UI for ASP.NET MVC is VS 2017 Ready