Product Bundles
DevCraft
All Telerik .NET and Kendo UI JavaScript components and AI Tools in one package.
Kendo UI
Bundle of AI Tools plus four JavaScript UI libraries built natively for jQuery, Angular, React and Vue.
Build JavaScript UI
Javascript
Telerik
Build modern .NET business apps
.Net Web
Cross-Platform
Desktop
Reporting and Documents
AI for Developers & IT
Ensure AI program success
AI Coding
AI Engineering
Additional Tools
Enhance the developer and designer experience
Testing & Mocking
Debugging
AI-Enhanced UI Tools
CMS
Free Tools
Support and Learning
Productivity and Design Tools
I am missing Dialog forum. Maybe you should create it and then move this topic.
How can I add icon or even better define classes for icon in dialog actions?
$(
"#dialog"
).kendoDialog({
actions: [{
text:
"OK"
,
spriteCssClass:
"fa fa-check"
action:
function
(e){
},
}]
});
Hello Matjaž,
The action buttons inside the Dialog accept HTML, so to add an icon class, you can do something like this:
http://dojo.telerik.com/ABiBu/6
Pass a span with the font icon class as the text property of the action. There are some built-in Kendo UI icons and their corresponding CSS classes that are listed at: http://demos.telerik.com/kendo-ui/styling/icons
I hope this answers your question.
In newer versions of Kendo, the text field is automatically encoded, i.e. it's not possible to use HTML.
Please implement an option for this, as described here: https://github.com/telerik/kendo-ui-core/issues/7783
I recommend casting your vote fo this feature in the below link:
https://feedback.telerik.com/kendo-jquery-ui/1655922-add-icon-property-to-dialog-action-buttons
As soon as it gets popular it will be included in the RoadMap for implementation.