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


    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 (, but it doesn't seems to work.
    How can I achieve this ?

  2. Answer
    Petyo avatar
    2439 posts

    Posted 20 Mar 2012 Link to this post


    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" });
    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