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

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

3 Answers 149 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Parthasarathi
Top achievements
Rank 1
Parthasarathi asked on 10 Dec 2012, 09:36 AM
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.

3 Answers, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 12 Dec 2012, 10:29 AM
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!
0
Parthasarathi
Top achievements
Rank 1
answered on 13 Dec 2012, 03:46 AM
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.
0
Petur Subev
Telerik team
answered on 14 Dec 2012, 08:26 AM
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!
Tags
ListView
Asked by
Parthasarathi
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Parthasarathi
Top achievements
Rank 1
Share this question
or