Page 1 of 1
map radio value query
Posted: Fri Sep 19, 2014 8:08 pm
by Vinny B
Hello
I cant get the value of my radio fields to return value from database query and have the correct radio selected.
I have three radio fields if the user selects the middle option (or ANY options) and saves whrn the open the menu the radio button middle one (or ANY one) is not selected.
map radio value query
Posted: Fri Sep 19, 2014 8:37 pm
by Evgene Karachevtsev
Hello Vinny,
Please add this code in the mapping in the property Selected
pre$(element).find('input[type=radio][value="' + value + '"]').prop("checked", true);/pre
map radio value query
Posted: Fri Sep 19, 2014 8:40 pm
by Vinny B
That solved that.
Thank You
map radio value query
Posted: Mon Mar 30, 2015 7:18 pm
by RobertJay
I just tried this and cannot get it to work. Has this been changed with the new model and storage approach?
map radio value query
Posted: Tue Mar 31, 2015 1:24 am
by Yurii Orishchuk
Hi Robert,
Please show us more details what you want to implement and what's not work.
Regards.
map radio value query
Posted: Tue Mar 31, 2015 3:18 am
by RobertJay
Yurii, thank you. I should have updated my comment to say that an approach Evgene provided in another thread solved this issue for me. But perhaps you can guide me on a related issue I still have: how can I map the grid - which reflects radio option selections may by the user -- back to the storage variable previously used to display the grid to the user? Is that doable through simple mapping - or do I need some JS? Any documentation or examples or guidance would be appreciated. I can't seem to do it through my mapping. Thanks.
map radio value query
Posted: Thu Apr 02, 2015 12:51 am
by Yurii Orishchuk
Hi Robert,
Yes you should use custom JS. Show us details with your current implementation and storage structure. On what event you want to do it?
Regards.