Example: RichTextBox Control
- Last UpdatedJun 22, 2023
- 1 minute read
A custom RichTextBox control using Kendo UI widget with control initialization, class, and JavaScript files.
-
SFControl.cs (control initialization file)
-
RichTextBox.cs (control class file)
-
knockout-kendo.editor.js (JavaScript file for Knockout binding of the specific Kendo UI widget)
-
richtextbox.js (JavaScript file for custom Knockout binding to support height, width, and read-only behavior)
Selecting the JavaScript files for the specific Kendo UI widget
The included kendo.all.min.js is limited to widgets – Grid, DateTimePicker, DatePicker,TimePicker, NumericTextBox, ColorPicker, Editor, Treeview, Gauge and PDF export features – pdf and drawing (which is built using the gulp command) for performance benefits.
To support additional widgets and features, you must refer only to the JavaScript files for the specific Kendo UI widget other than the JavaScript files for the included widgets. For this, you must be aware of script dependencies and requirements for the Kendo UI widgets. Refer to Include Individual Widget Scripts for Kendo for the complete list of JavaScript files required for each Kendo UI widget.
Ensure you do not build the required Kendo UI widget JavaScript files using the gulp command as the script files created and registered will contain duplicate code parts.