Vinny B
Posts: 0
Joined: Fri Aug 22, 2014 2:22 pm

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

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.

Vinny B
Posts: 0
Joined: Fri Aug 22, 2014 2:22 pm

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

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

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

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

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.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

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

Hi Vinny,

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

Vinny B
Posts: 0
Joined: Fri Aug 22, 2014 2:22 pm

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

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?

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

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

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

Vinny B
Posts: 0
Joined: Fri Aug 22, 2014 2:22 pm

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

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

I appreciate everyone help.

Thank You
Vinny

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

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

Hello Vinny,

Thank you for the update, glad it works!

Return to “Issues”