Databound ListView and data-style="inset"

2 posts, 1 answers
  1. Kakone
    Kakone avatar
    65 posts
    Member since:
    Jan 2010

    Posted 19 Mar 2012 Link to this post

    Hello,

    I'm trying Kendo UI mobile. I would like to have the inset style for a databound listview. I just added 'data-style="inset"' to your sample (http://demos.kendoui.com/beta/mobile/listview/databinding.html), but it doesn't seems to work.
    How can I achieve this ?

    Cordially,
    Kakone.
  2. Answer
    Petyo
    Admin
    Petyo avatar
    2439 posts

    Posted 20 Mar 2012 Link to this post

    Hi,

    The widgets support either declarative initialization, or jQuery initialization. At this demo, the widgets are initialized as jQuery plugins - in which case the data attributes are discarded.

    The right way to handle that would be to pass the inset option to the constructor: 

    function mobileListViewDataBindInitFlat() {
         $("#flat-listview").kendoMobileListView({ dataSource: flatData, style: "inset" });
     }
     
    Greetings,
    Petyo
    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
Back to Top