'items per page' is not inclining with page numbers in listview

4 posts, 0 answers
  1. Parthasarathi
    Parthasarathi avatar
    24 posts
    Member since:
    Oct 2012

    Posted 10 Dec 2012 Link to this post

    Hi All,

    When page numbers are more in List view, "items per page" is displaying in next line. It is not inclining with the page numbers in the same row. How to resolve this issue?

    Regards,
    Partha.
  2. Petur Subev
    Admin
    Petur Subev avatar
    1882 posts

    Posted 12 Dec 2012 Link to this post

    Hello Parthasarathi,

    I would suggest you to use less Numbers for your pager

    .Pageable(pg => pg.ButtonCount(5))


    Regards,
    Petur Subev
    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. Parthasarathi
    Parthasarathi avatar
    24 posts
    Member since:
    Oct 2012

    Posted 12 Dec 2012 Link to this post

    Hi Petur,

    Thanks for quick response. Below is my code. I am already using ' .Pageable(pager => { pager.PageSizes(true);})'  in my code. I have tried to use button count. But, it is showing error. I am attaching screenshot of error. Immediate help will be appreciated.

     @(Html.Kendo().ListView<Model>()
            .Name("sites")
            .Events(events => events.DataBound("OnDataBound"))
            .TagName("div")
            .ClientTemplateId("template")
            .DataSource(source =>
            source.Read(read => read.Action("Action", "Controller"))
            .PageSize(10))
            .Selectable(selection =>
            {
                selection.Enabled(true);
                selection.Mode(ListViewSelectionMode.Multiple);
            })
            .Pageable(pager => { pager.PageSizes(true);})
            )

    Regards,
    Partha.
  5. Petur Subev
    Admin
    Petur Subev avatar
    1882 posts

    Posted 14 Dec 2012 Link to this post

    Hello Partha,

    Thank you for showning an image of the error - it is clear that you do not have such method available on your side. It the thread information you have marked t hat you are using version 2012.3 1114, can you confirm that?
    If you are using an older version could you please update to the latest official version and see if the method is available?

    Regards,
    Petur Subev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top
UI for ASP.NET MVC is VS 2017 Ready