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

Add dimanic data to template

1 Answer 17 Views
Templates
This is a migrated thread and some comments may be shown as answers.
Kiy
Top achievements
Rank 1
Kiy asked on 06 Jun 2014, 10:57 PM
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?

1 Answer, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 10 Jun 2014, 12:52 PM
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!
 
Tags
Templates
Asked by
Kiy
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Share this question
or