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

Databound ListView and data-style="inset"

1 Answer 272 Views
ListView (Mobile)
This is a migrated thread and some comments may be shown as answers.
Kakone
Top achievements
Rank 1
Kakone asked on 19 Mar 2012, 02:13 PM
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.

1 Answer, 1 is accepted

Sort by
0
Accepted
Petyo
Telerik team
answered on 20 Mar 2012, 08:18 AM
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!
Tags
ListView (Mobile)
Asked by
Kakone
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Share this question
or