Feel free to share demo-related thoughts here.
If you have technical questions, please create a support ticket in the DevExpress Support Center.
x
Send Feedback
Thank you! We appreciate your feedback.
Backend API
@(Html.DevExtreme().Popup()
.ID("popup")
.Width(550)
.Height(350)
.Visible(true)
.ShowTitle(false)
.HideOnOutsideClick(false)
.ContentTemplate(new TemplateName("popup-template"))
)
@using (Html.DevExtreme().NamedTemplate("popup-template")) {
@(Html.DevExtreme().ScrollView()
.Width("100%")
.Height("100%")
.Content(@<text>
<img src="../../images/Popup-Scrolling-Image.jpg" class="center" />
<div id="textBlock">
The <b>ScrollView</b> allows users to scroll its content vertically. To enable horizontal and vertical scrolling, set the <b>direction</b> option to <i>"both"</i>. Horizontal scrolling is available only if the content is wider than the <b>ScrollView</b>. Otherwise, the content adapts to the widget's width.<br /><br />The <b>ScrollView</b> uses native scrolling on most platforms, except desktops. To use it on all platforms, assign <b>true</b> to the <b>useNative</b> option. If you assign <b>false</b>, scrolling is simulated on all platforms.
</div>
</text>)
)
}
using DevExtreme.NETCore.Demos.Models.SampleData;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
namespace DevExtreme.NETCore.Demos.Controllers {
public class PopupController : Controller {
public ActionResult Scrolling() {
return View();
}
}
}