Disable Scroller in ModalView

3 posts, 1 answers
  1. Chico
    Chico avatar
    5 posts
    Member since:
    Jun 2013

    Posted 24 Jul 2013 Link to this post

    Hi,

    Is there a way to disable or remove the Scroller widget inside the ModalView? I am customizing mine and I don't want the scroller there.

    Is there something like a data- attribute I can use?

    Thank you for any help!
  2. Answer
    Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2566 posts

    Posted 25 Jul 2013 Link to this post

    Hi Christian,

    You can try using the stretch configuration option that the ModalView inherits from the View and set it to true. If set to true, the view will stretch its child contents to occupy the entire view, while disabling kinetic scrolling. I have prepared a demo with a possible implementation:

    http://jsbin.com/oredip/3/edit

    You can test it by modifing this line of code:

    <div data-role="modalview" id="modalview-login" style="width: 95%; height: 18em;" data-stretch="true">

    // you can try
    setting data-streach="false" to see the difference


    Regards,
    Kiril Nikolov
    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
  4. Chico
    Chico avatar
    5 posts
    Member since:
    Jun 2013

    Posted 25 Jul 2013 Link to this post

    Thank you! :)
Back to Top