Add dimanic data to template

2 posts, 0 answers
  1. Kiy
    Kiy avatar
    3 posts
    Member since:
    Apr 2014

    Posted 06 Jun 2014 Link to this post

    Hi,
    Please, check my code here:
    http://trykendoui.telerik.com/Ipij/12

    I try add on template variable <div>#=ds# </div> in function
     function change(e) {
       ds = e.page; }
    But i see 0 on (0-2) pages and only 3 page variable chache

    Can anyone help me?
  2. Petyo
    Admin
    Petyo avatar
    2438 posts

    Posted 10 Jun 2014 Link to this post

    Hi,

    When instantiated, the ScrollView immediately renders its next pages - this is why the next pages also renders as zero - they are rendered before the change event is triggered. The correct approach in that case would be to include the index in the respective dataSource record.

    Regards,
    Petyo
    Telerik
     
    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
Back to Top