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

Get > Button Styling in Template

4 Answers 74 Views
ListView (Mobile)
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 01 May 2012, 11:05 AM
Hi,

Could someone please look at this -

http://jsfiddle.net/wickedw/72wLY/ 

And tell me what I am doing wrong?

I am trying to get the listview buttons in v1 to display as mobile style -

1                           >
2                           >

Not as 

[1]
[2]

Thanks
Matt


4 Answers, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 02 May 2012, 11:48 AM
Hello,

You don't need buttons in listview items. See updated fiddle: http://jsfiddle.net/72wLY/38/

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!
0
Matt
Top achievements
Rank 1
answered on 03 May 2012, 11:51 AM
Thanks Petyo,

I will go down this cleaner route.

Have you any idea why a single hard-coded <li><a data-role="button" ...></li> inside a listview gets overridden with the ' xyz                > '
css style but this is not the case for an applied template with the same code?

Should this be consistent or is it just an edge case we should not be using anyway?

Thanks
Matt
0
Accepted
Petyo
Telerik team
answered on 03 May 2012, 12:48 PM
Hello,

It is actually a glitch (which is fixed in the latest internal builds). The whitespace was significant, and 

<li> 
<a href="#".... >foo</a>
</li>


Did not tirgger arrow appearance, while

<li><a href="#".... >foo</a></li>

did. 

It turned out to be an inconvenient one, so we fixed it. Anyway, you do not really need buttons inside listview, as it exposes a click event. 

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!
0
Matt
Top achievements
Rank 1
answered on 03 May 2012, 02:14 PM
Thanks Petyo,

Glad you have addressed it, it certainly confused me!! :)
Tags
ListView (Mobile)
Asked by
Matt
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Matt
Top achievements
Rank 1
Share this question
or