Customize listview's pager on mvc

4 posts, 1 answers
  1. Alberto
    Alberto avatar
    71 posts
    Member since:
    May 2012

    Posted 16 Apr 2014 Link to this post

    Hi guys, 
    I don't know if I'm in the right section because my question is actually on datapager...but anyway..

    I'd like to know if there any way to customize the appearance of the pager using mvc...
    I remeber that in "normal" use I was able to set if to show pages number or just control or something like that..
    I have the pager you see in the attached print, and I'd like to fix it so that it is rendered in just one line. (maybe removing page numbers, or showing just 5 instead of 10).

    note that page size is set to 10 and has to remain like this.
    Thanks
    Fabio
  2. Answer
    Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2156 posts

    Posted 17 Apr 2014 Link to this post

    Hello Fabio,


    I assume that the question is related to the pager of the ListView (not Mobile ListView). If that is the case then you could configure it through the pageable configuration.
    E.g.
    .Pageable(p => p.ButtonCount(5))

    I hope this information helps. Let me know if I could assist you further.

    Regards,
    Dimiter Madjarov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Alberto
    Alberto avatar
    71 posts
    Member since:
    May 2012

    Posted 05 May 2014 in reply to Dimiter Madjarov Link to this post

    Perfect, Thank you.

    I don't know why this information are not on documentation...
    I mean..there everything on docs..but always on non-mvc framework...
    you should probably write some api docs for mvc too.

  5. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2156 posts

    Posted 06 May 2014 Link to this post

    Hello Fabio,


    I am glad that the information was helpful.

    Thank you for the documentation suggestion. We always try to improve it as much as possible.

    Regards,
    Dimiter Madjarov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top
UI for ASP.NET MVC is VS 2017 Ready