on 01-14-2014 5:20 AM
Hi, everyone. I am developing a hybrid mobile application using the SUP 2.2. I have encountered this problem that checkbox in my listview which i customised at the custom.js cannot be checked. I want to make these checkboxes checked/unchecked using the custom.js. Can someone please advice me how to solve this problem?
Really appreciate your help and thank you in advance.
Regards,
Theary
This sample may be of interest as I believe it displays a set of checkboxes.
Custom Controls https://cw.sdn.sap.com/cw/docs/DOC-148847
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have you implemented checkboxes in listview?
Usually listview has a common overlapping layer on top of each row. If you have implemented checkbox, that may be overlapped within that layer. So you will just have the access for the layer not on checkbox. To fix this, increase the z-index css property value for checkbox. For you must have css knowledge.
Share the screen shot of the list view if possible.
If it is not a CSS issue, you can implement the below method in custom.js
in jquery mobile html
<input type="checkbox" id="myCheck" onClick="callCheck()">
in custom.js
function callCheck()
{
var x = document.getElementById("myCheck").checked;
alert(x);
}
Regards
Yokesvaran Kumarsamy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As i said, its a layer issue only. Content within list(row) cannot be accessed directly, its overlapped with one more layer and checkbox and other fields will not have access. So if you clicked on the list, it will take you to next screen.
Increase your z-index css property within a input checkbox tab,
<input type="checkbox" name="checkboxlist" style="z-index:999999999" ......
Try this. higher z-index values brings the field to front for better accessing. If possible i will share the sample code later.
Regards
Yokesvaran Kumarasamy
Download the sample app from here, https://www.dropbox.com/sh/wwrt0s19tws9s0c/eiM0hc8jIz
Open sample.html in the folder to see the documentation. It was the example given by Dan. it shows how to use multiple check boxes.
- Midhun VP
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.