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

Documentation for Declarative Data Binding

3 Answers 33 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ian
Top achievements
Rank 1
Ian asked on 05 Feb 2013, 03:15 PM
I'm struggling to find documentation I need or even sample code for "Enterprise" class development using declarative data binding.  The demo's are good at getting you started quickly but none of them use declarative data- attributes, which seems an odd ommission given that the Pluralsight training course "Introducing Kendo UI" recommends this approach over the others shown in the demo's.

eg I can't find a list of all the available data-roles.   I found "menu" eventually (after wondering why "kendoMenu" or "Kendo.UI.KendoMenu" didn't work but without documentation  or a robust application this is pretty much guesswork for each widget unless I've missed something in the available documentation.

It's also come as a bit of a shock to discover the response to this user struggling to get declarative data binding working with the menu control http://www.kendoui.com/forums/framework/mvvm/source-binding-to-the-menu-widget-or-other-widgets.aspx Has the position changed since this was posted in April last year or is it still the case that none of the hierarchical widgets can't be data bound declaratively and the recommended way of dealing with this is as outlined in the answer (which seems a hell of a hack).

Thanks in advance for any response.

3 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 07 Feb 2013, 05:06 PM
Hello,

There is not a list of all roles but the value of the row attribute is basically the name of the widget with lower-case letters. The attributes for the widgets options can also be determined from the option names like described in this documentation topic.
The TreeView now supports binding to data by using the HierarchicalDataSource. I am afraid that the other widgets mentioned in the forum still does not support binding.

Regards,
Daniel
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
David Ocasio
Top achievements
Rank 2
Veteran
answered on 10 Jan 2014, 08:52 PM
hey guys ... has this been updated in the documentations
specifically is there a place I can look up the declarative data attributes for a widget.

right now we have
configuration, fields, methods and events.
we should have one more for data attributes

for example right now I want to set the modal configuration of the window widget and i'm wondering if there is a data_modal attribute I can use but I don't have anywhere to look.

I prefer not to do it in the scripting since I use mvvm most of the time.

just saying
0
Daniel
Telerik team
answered on 14 Jan 2014, 10:02 AM
Hello,

All configuration options for the widgets can be set with attributes. As mentioned previously, the data attributes are not listed for the widgets because they can be determined from the options names. 

Regards,
Daniel
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
Ian
Top achievements
Rank 1
Answers by
Daniel
Telerik team
David Ocasio
Top achievements
Rank 2
Veteran
Share this question
or