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

Switch not appearing in listview on android 2.3.4

2 Answers 61 Views
Switch (Mobile)
This is a migrated thread and some comments may be shown as answers.
Grant
Top achievements
Rank 1
Grant asked on 17 May 2012, 09:52 AM
Hi guys,

I'm having an issue where i have a switch control (Based on a input tag with type set to checkbox) embedded in an item in a list view. 

It works perfectly everywhere I test except on android 2.3.4 devices where it does not appear at all. (I have tested on a Samsung Galaxy S II and a Sony Xperia Arc S and it does not work on either phone)

I'd like to note that it does work on these devices when it is outside of a list view (ul, li tags) but the minute I place it inside one it disappears.

I use the following code in a view:

<ul data-role="listview" data-style="inset" data-type="group">
        <li>
            Africa
            <ul>
                <li data-icon="toprated"><input name="MyCheckBox" id="MyCheckBox" type="checkbox" data-role="switch"/></li>
            </ul>
        </li>
</ul>


Thanks,

Rob

2 Answers, 1 is accepted

Sort by
0
Accepted
Alexander Valchev
Telerik team
answered on 23 May 2012, 09:28 AM
Hi Rob,

I tried to reproduce this issue using both the provided snippet and this official demo page, but to no avail. Do you experience the same problem while you browse this demo that uses switch control inside list view?

Kind regards,
Alexander Valchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Grant
Top achievements
Rank 1
answered on 23 May 2012, 02:21 PM
Hi Alexander,

Thanks for getting back to me. I tried the sample and it works fine so I managed to narrow it down to some css i had which was causing the problem. (I was setting the alignment of the switch to the right when I didn't need to to). Sorry about that.

Thanks again!

Rob
Tags
Switch (Mobile)
Asked by
Grant
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Grant
Top achievements
Rank 1
Share this question
or