Page 2 of 2

radio inside a list work in preview but not in android app

Posted: Mon Oct 06, 2014 1:15 pm
by Vinny B

The drop down list, should just drop down from its location within the app and not open up and fill the entire page. Am I correct on that?

I shared the app.


radio inside a list work in preview but not in android app

Posted: Mon Oct 06, 2014 1:26 pm
by Vinny B

Maybe its working correctly and its just me. But you will notice in the video how it flickers and looks like odd.

here is how it look in another app i tested.

Image


radio inside a list work in preview but not in android app

Posted: Mon Oct 06, 2014 1:49 pm
by Evgene Karachevtsev

Vinny,

The list looks like a dialog box when the set of its options does not fit on the screen. You can check 'Native Menu' in select of component's properties, then the list will be native.


radio inside a list work in preview but not in android app

Posted: Mon Oct 06, 2014 2:51 pm
by Kateryna Grynko

Hi Vinny,

Please try removing Click event action from radio items and add Value change event to the whole radiobutton group.


radio inside a list work in preview but not in android app

Posted: Mon Oct 06, 2014 3:35 pm
by Vinny B

The action is already value change.

This is tehe longest value and Label in the list Overtime 12 Hours Night .

Yes I can use the native option which works fine.

How about my first problem?


radio inside a list work in preview but not in android app

Posted: Tue Oct 07, 2014 8:40 am
by Evgene Karachevtsev

Hello Vinny,

You should use not a click event on RadioButton but value change event on the radiogroup.
But unfortunately we have a bug. Value change event does not work on the radiogroup reproduced using the mapping.
But there is workaround.
Please remove all click events on RadioButtons otNotPaidRadioButton/otStatusPaidButton and on page load use this code
pre$(document).off("change", '#overtimeTracking [name^="otRadioGroup"]').on({
change: function(event) {
localStorage.setItem("otStatusOtTracking", $(this).val());
localStorage.setItem("otIdOtTracking", $(this).closest("li").find("[name=overId]").text());
try {
updateService.execute({});
} catch (e) {
console.error(e);
hideSpinner();
};
},
}, '#overtimeTracking [name^="otRadioGroup"]');/pre


radio inside a list work in preview but not in android app

Posted: Wed Oct 08, 2014 8:27 am
by Vinny B

You and Kateryna were right I changed it to value change and it works perfect.

I appreciate everyone help.

Thank You
Vinny


radio inside a list work in preview but not in android app

Posted: Wed Oct 08, 2014 8:47 am
by Evgene Karachevtsev

Hello Vinny,

Thank you for the update, glad it works!