Fail contentHeight 100% in javascript ScrollView binding

2 posts, 0 answers
  1. David
    David avatar
    12 posts
    Member since:
    Mar 2008

    Posted 04 Dec 2013 Link to this post

    I'm trying to make a 100% height scrollview. If I make it using html attributtes (<data-role="scrollview" data-source="_500pxBatchDS"  data-template="scrollview-batch-template" data-items-per-page="4" data-content-height="100%" data-enable-pager="false">) it works right.

    But I bind it using javascript functions seems that do nothing. You can see it in this example if you change the height style in batch-page to 100% at this sample:

    How can I make it works?

  2. Alexander Valchev
    Alexander Valchev avatar
    2895 posts

    Posted 05 Dec 2013 Link to this post

    Hi David,

    You should initialize the widget at the init event of its parent View. In other words the onInit function should be executed on init event of the View.
    For your convenience I updated the jsBin sample:

    Alexander Valchev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top