Refreshing the pager

6 posts, 0 answers
  1. Georgi
    Georgi avatar
    6 posts
    Member since:
    Aug 2010

    Posted 25 Feb 2012 Link to this post


    Hi, 

    Is there a way to refresh the pager beneath the control? I'm evaluating the scrollview to show content in specific width, but when the device orientation is changed I'm tweaking the size of the parent container and everything works except the pager which is still showing the previous page count and selection.

    I'm looking for something like $("#chart").data("kendoChart").refresh()....

    Regards, 

    Georgi
  2. Petyo
    Admin
    Petyo avatar
    2439 posts

    Posted 27 Feb 2012 Link to this post

    Hello,

    There is no such method exposed the current beta release. The good news is a refresh method will be available in our second mobile beta, due this week. 

    All the best,
    Petyo
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Kendo UI is VS 2017 Ready
  4. Gaetano
    Gaetano avatar
    1 posts
    Member since:
    Mar 2012

    Posted 16 Mar 2012 Link to this post

    Is it possible to have an example of the refresh method? I cannot refresh a ScrollView after a template has been applied
  5. Alan
    Alan avatar
    2 posts
    Member since:
    May 2008

    Posted 13 Apr 2012 Link to this post

    How do I use the refresh method properly?

    I am dynamically generating the scrollView pages' content in javascript, but after I set the html of the inner div (the one with data-role="scrollview") I lose the paging functionality. I just see all of the pages content on a single page and the page indicator is gone.

    When I call the refresh method, the layout is the way is should be, but the page indicator is still missing and I cannot change pages.
  6. Petyo
    Admin
    Petyo avatar
    2439 posts

    Posted 17 Apr 2012 Link to this post

    Hi,

    The scrollview widget wraps its content in an additional div, and then appends the pager to the outer one. If you want to manipulate its contents, the right way would be to target it like this:

    $("#myScrollView").children().first()


    All the best,
    Petyo
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  7. Alan
    Alan avatar
    2 posts
    Member since:
    May 2008

    Posted 17 Apr 2012 Link to this post

    Ok, I tried that and now I get the indicator and the proper number of pages, but all of my content is on page one and the rest are blank.
Back to Top
Kendo UI is VS 2017 Ready