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

This forum contains topics that were moved from Get Satisfaction
Vinny B
Posts: 0
Joined: Fri Aug 22, 2014 2:22 pm

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

Post 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.

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

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

Post 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

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

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

Post 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.

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

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

Post by Kateryna Grynko »

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

Post 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?

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

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

Post 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

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

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

Post 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

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

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

Post by Evgene Karachevtsev »

Hello Vinny,

Thank you for the update, glad it works!

Post Reply