This is a migrated thread and some comments may be shown as answers.

Createing controls by code only

1 Answer 23 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Markus
Top achievements
Rank 1
Markus asked on 14 Aug 2014, 08:37 AM
Hello,

is it possible to create kendoui controls by code only (without creating html tags)? I am using SmartMobileStudio to create html5 apps. In SmartMobileStudio you actually don't touch the html file, it is all generated by code.

1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 15 Aug 2014, 03:17 PM
Hi Markus,

Most Kendo UI widgets require a minimum HTML mark-up (usually one element) to be initialized from.
If you want you may create and add this element to the DOM via jQuery append or appenTo methods and then initialize a widget from it, but the widget cannot be created without existing DOM element. If there is no DOM element, than how the framework will know where to place the widget?

Regards,
Alexander Valchev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
General Discussions
Asked by
Markus
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Share this question
or