Documentation for Declarative Data Binding

4 posts, 0 answers
  1. Ian
    Ian avatar
    51 posts
    Member since:
    Apr 2009

    Posted 05 Feb 2013 Link to this post

    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.
  2. Daniel
    Admin
    Daniel avatar
    2118 posts

    Posted 07 Feb 2013 Link to this post

    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!
  3. Kendo UI is VS 2017 Ready
  4. David Ocasio
    David Ocasio avatar
    147 posts
    Member since:
    Nov 2009

    Posted 10 Jan 2014 Link to this post

    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
  5. Daniel
    Admin
    Daniel avatar
    2118 posts

    Posted 14 Jan 2014 Link to this post

    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!
Back to Top
Kendo UI is VS 2017 Ready