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

Disable Scroller in ModalView

2 Answers 46 Views
ModalView
This is a migrated thread and some comments may be shown as answers.
Chico
Top achievements
Rank 1
Chico asked on 24 Jul 2013, 03:39 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Kiril Nikolov
Telerik team
answered on 25 Jul 2013, 11:18 AM
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!
0
Chico
Top achievements
Rank 1
answered on 25 Jul 2013, 03:47 PM
Thank you! :)
Tags
ModalView
Asked by
Chico
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Chico
Top achievements
Rank 1
Share this question
or