- Core Lab
- ActionSheetUpdated
- AI Prompt
- AppBar
- Arc Gauge
- Area Charts
- AutoComplete
- Avatar
- Badge
- Bar Charts
- Barcode
- BottomNavigation
- Box Plot Charts
- Breadcrumb
- Bubble Charts
- Bullet Charts
- Button
- ButtonGroup
- Calendar
- Captcha
- Cards
- ChartUpdated
- Chart API
- Chart Wizard
- Chat
- CheckBox
- CheckBoxGroup
- Chip
- ChipList
- Circular Gauge
- Circular ProgressBar
- ColorGradient
- ColorPalette
- ColorPicker
- ComboBox
- DataSource
- DateInput
- DatePicker
- DateRangePicker
- DateTimePicker
- Diagram
- Dialog
- DockManager
- Donut Charts
- Drag and Drop
- Drawer
- DrillDown Charts
- DropDownButton
- DropDownList
- DropDownTree
- EditorUpdated
- Expansion Panel
- FileManagerUpdated
- Filter
- FlatColorPicker
- FloatingActionButton
- FormUpdated
- Funnel Charts
- Gantt
- GridUpdated
- Overview
- Basic Usage
- TagHelper
- Data Binding
- Exporting
- Data Editing
- Scrolling
- Filtering
- Functionality
- Group Paging of Remote Data
- ToolBar ToolsNew
- Server Grouping with Virtualization
- Sorting
- Search Panel
- Selection
- Selection Aggregates
- Checkbox Selection
- Aggregates
- Paging
- Pager Functionality
- Hierarchy
- State Persistence
- Responsive Columns
- Hidden Grouped Columns
- Drag and Drop
- Sizing
- Context Menu
- Row & Column Spanning
- Row Resizing
- Paste from Excel
- Chart Integration
- Templates
- Columns
- API
- Accessibility and Internationalization
- GridLayout
- HeatMap
- ImageEditorUpdated
- Line Charts
- Linear Gauge
- ListBox
- ListView
- Loader
- Map
- MaskedTextBox
- MediaPlayer
- MenuUpdated
- MultiColumnComboBox
- MultiSelect
- MultiViewCalendar
- Notification
- NumericTextBox
- OrgChart
- OTP Input
- PagerUpdated
- PanelBar
- PDF Export
- PdfProcessing
- PDFViewerUpdated
- Pie Charts
- PivotGrid
- PivotGridV2
- Polar Charts
- Popover
- ProgressBar
- PropertyGridUpdated
- Pyramid Charts
- QRCode
- Radar Charts
- Radial Gauge
- RadioButton
- RadioGroup
- Range Area Charts
- Range Bar Charts
- Rating
- Responsive Panel
- Ripple Container
- Sankey Diagram
- Scatter Charts
- Scheduler
- Overview
- Basic Usage
- Adaptive Rendering
- TagHelper
- Functionality
- Adaptive Slot Height
- Auto Event Height
- Year View
- Timeline View
- Timeline Overnight View
- Custom Toolbar
- Event Selection
- Import and Export to iCal
- PDF Export
- Search Events
- Resources
- Horizontal Grouping
- Vertical Grouping
- Virtual Vertical Grouping
- Hierarchical Grouping
- Date Grouping
- Templates
- Restrictions
- Moving and Resizing
- Changing Work Days
- Highlight Ongoing Events
- Data Binding
- API
- Accessibility and Internationalization
- ScrollView
- Signature
- Skeleton Container
- Slider
- Sortable
- Sparklines
- SplitButton
- Splitter
- SpreadProcessing
- Spreadsheet
- SpreadStreamProcessing
- StackLayout
- Stepper
- Stock Charts
- Switch
- TabStrip
- TaskBoardUpdated
- Template
- TextArea
- TextBox
- TileLayout
- TimeDurationPicker
- Timeline
- TimePicker
- ToggleButton
- ToolBar
- Tooltip
- TreeList
- Basic Usage
- TagHelper
- Remote Data Binding
- OData-v4 Binding
- Checkbox Selection
- Drag and Drop
- Editing
- Filter Row
- InCell Editing
- Popup Editing
- Search Panel
- Column Resizing
- Column Reordering
- Column Menu
- Multi-Column Headers
- Frozen Columns
- Aggregates
- State Persistence
- Excel Export
- PDF Export
- Events
- API
- Row Template
- Toolbar Template
- Keyboard Navigation
- Client-Side Paging
- TreeMap
- TreeView
- UploadUpdated
- Validator
- Waterfall Charts
- Window
- Wizard
- WordsProcessing
- Zip Library
New to Telerik UI for ASP.NET Core? Download free 30-day trial
ASP.NET Core ColorPicker Declarative Initialization
- EXAMPLE
- VIEW SOURCE
- Edit in Telerik REPL
- Change ThemedefaultDefault Theme
- Main
- Main Dark
- Nordic
- Ocean Blue
- Ocean Blue A11Y
- Purple
- Turquoise
Bootstrap Theme- Main
- Bootstrap 3
- Bootstrap 3 Dark
- Main Dark
- Nordic
- Turquoise
- Turquoise Dark
- Urban
- Vintage
Material Theme- Main
- Arctic
- Lime Dark
- Main Dark
- Material 2
- Material 2 Dark
- Nova
Classic Theme- Main
- Green
- Green Dark
- Lavender
- Lavender Dark
- Main Dark
- Metro
- Metro Dark
- Moonlight
- Opal
- Opal Dark
- Silver
- Silver Dark
- Uniform
Fluent Theme- Main
Description
TheTelerik UI for ASP.NET Core ColorPicker supports thedeclarative initialization feature, where the component declaration is serialized as an MVVM declarative configuration instead of as an inline initialization script.
The declarative initialization feature serializes the helper declaration as an MVVM configuration and initializes the component from the DOM elements on the client. This functionality is suitable when theContent Security Policy (CSP) is enabled and eliminates the requirement to call theDeferredScriptFile()
orDeferred()
methods thatdefer the initialization script generated after the component's HTML markup.
This example demonstrates how to enable the declarative initialization of the ColorPicker:
- Add the
UseMvvmInitialization()
option in the helper declaration. - Within the
$(document).ready()
function, call thekendo.bind()
method and pass the element that wraps the helper declaration or theName()
of the component by selecting it with jQuery.