-
Data Grid
- Overview
-
Data Binding
-
Paging and Scrolling
-
Editing
-
Grouping
-
Filtering and Sorting
- Focused Row
-
Row Drag & Drop
-
Selection
-
Columns
- State Persistence
-
Appearance
-
Templates
-
Data Summaries
-
Master-Detail
-
Export to PDF
-
Export to Excel
-
Adaptability
- Keyboard Navigation
-
Pivot Grid
- Overview
-
Data Binding
-
Field Chooser
-
Features
-
Export to Excel
-
Tree List
- Overview
-
Data Binding
- Sorting
- Paging
-
Editing
- Node Drag & Drop
- Focused Row
-
Selection
-
Filtering
-
Column Customization
- State Persistence
- Adaptability
- Keyboard Navigation
-
Scheduler
- Overview
-
Data Binding
-
Views
-
Features
- Virtual Scrolling
-
Grouping
-
Customization
- Adaptability
-
Html Editor
-
Chat
-
Diagram
- Overview
-
Data Binding
-
Featured Shapes
-
Custom Shapes
-
Document Capabilities
-
User Interaction
- UI Customization
- Adaptability
-
Charts
- Overview
-
Data Binding
-
Area Charts
-
Bar Charts
- Bullet Charts
-
Doughnut Charts
-
Financial Charts
-
Line Charts
-
Pie Charts
-
Point Charts
-
Polar and Radar Charts
-
Range Charts
-
Sparkline Charts
-
Tree Map
-
Funnel and Pyramid Charts
- Sankey Chart
-
Combinations
-
More Features
-
Export
-
Selection
-
Tooltips
-
Zooming
-
-
Gantt
- Overview
-
Data
-
UI Customization
- Strip Lines
- Export to PDF
- Sorting
-
Filtering
-
Gauges
- Overview
-
Data Binding
-
Bar Gauge
-
Circular Gauge
-
Linear Gauge
-
Navigation
- Overview
- Accordion
-
Menu
- Multi View
-
Drawer
-
Tab Panel
-
Tabs
-
Toolbar
- Pagination
-
Tree View
- Right-to-Left Support
-
Layout
-
Editors
- Overview
- Autocomplete
-
Calendar
- Check Box
- Color Box
-
Date Box
-
Date Range Box
-
Drop Down Box
-
Number Box
-
Select Box
- Switch
-
Tag Box
- Text Area
- Text Box
- Validation
- Custom Text Editor Buttons
- Right-to-Left Support
- Editor Appearance Variants
-
Forms and Multi-Purpose
- Overview
- Button Group
- Field Set
-
Filter Builder
-
Form
- Radio Group
-
Range Selector
- Numeric Scale (Lightweight)
- Numeric Scale
- Date-Time Scale (Lightweight)
- Date-Time Scale
- Logarithmic Scale
- Discrete scale
- Custom Formatting
- Use Range Selection for Calculation
- Use Range Selection for Filtering
- Image on Background
- Chart on Background
- Customized Chart on Background
- Chart on Background with Series Template
- Range Slider
- Slider
-
Sortable
-
File Management
-
File Manager
- Overview
-
File System Types
-
Customization
-
File Uploader
-
-
Actions and Lists
- Overview
-
Action Sheet
-
Button
- Floating Action Button
- Drop Down Button
-
Context Menu
-
List
-
Lookup
-
Maps
- Overview
-
Map
-
Vector Map
-
Dialogs and Notifications
-
Localization
JavaScript/jQuery Popup - Scrolling
This demo shows two implementations of scrolling in the JavaScript Popup component.
When you click the first Show JavaScript Popup button, a JavaScript Popup with a native scrollbar appears. The component always displays a native scrollbar when the height of the JavaScript Popup's content is greater than that of the JavaScript Popup.
If you have technical questions, please create a support ticket in the DevExpress Support Center.
$(() => {
$('#show-popup-button').dxButton({
text: 'Show Popup',
width: 300,
type: 'default',
onClick() {
popup.show();
},
});
$('#show-popup-with-scrollview-button').dxButton({
text: 'Show Popup',
width: 300,
onClick() {
popupWithScrollView.show();
},
});
const popup = $('#popup')
.dxPopup({
width: 360,
height: 320,
visible: false,
title: 'Downtown Inn',
hideOnOutsideClick: true,
showCloseButton: true,
toolbarItems: [
{
widget: 'dxButton',
toolbar: 'bottom',
location: 'center',
options: {
width: 300,
text: 'Book',
type: 'default',
stylingMode: 'contained',
onClick() {
popup.hide();
},
},
},
],
})
.dxPopup('instance');
const popupWithScrollView = $('#popup-with-scrollview')
.dxPopup({
width: 360,
height: 320,
visible: false,
title: 'Downtown Inn',
hideOnOutsideClick: true,
showCloseButton: true,
toolbarItems: [
{
widget: 'dxButton',
toolbar: 'bottom',
location: 'center',
options: {
width: 300,
text: 'Book',
type: 'default',
stylingMode: 'contained',
onClick() {
popupWithScrollView.hide();
},
},
},
],
contentTemplate() {
const $scrollView = $('<div/>');
$scrollView.append($('<div/>').html(htmlContent));
$scrollView.dxScrollView({
width: '100%',
height: '100%',
});
return $scrollView;
},
})
.dxPopup('instance');
});
xxxxxxxxxx
xxxxxxxxxx
xxxxxxxxxx
A click on the second Show JavaScript Popup button also displays a JavaScript Popup with a scrollbar, but this scrollbar belongs to the ScrollView component. This implementation is more flexible. For example, you can enable right-to-left representation or scroll the content to a specific position. For more information about the available options, refer to the ScrollView API section.
To implement the second solution, follow the steps below: