Title: Load Form doesn't check radiobutton Post by: poeziafree on October 05, 2022, 07:19:19 AM Hello,
form('load', {}); doesn't check the radiobutton. How can I achieve this? I have two radiobuttons with the same name each having its own label (see the screen below), like Gender: a) male b) female Title: Re: Load Form doesn't check radiobutton Post by: jarry on October 05, 2022, 09:11:26 PM Please look at this example. It works fine.
Code: <!DOCTYPE html> Title: Re: Load Form doesn't check radiobutton Post by: poeziafree on October 05, 2022, 10:25:52 PM Jarry, thank you as always!
Could you please help us extend the radiobutton functionality so that it supports not only a single radiobutton, but a group of radiobuttons aligned either horizontally, or vertically, each radiobutton having its own label, while the group itself may have a single label? That would be very good for the entire project. Reference: https://examples.sencha.com/extjs/7.5.1/examples/kitchensink/?modern#form-radiogroup Thanks Title: Re: Load Form doesn't check radiobutton Post by: jarry on October 10, 2022, 05:19:19 AM Please refer to this example https://www.jeasyui.com/demo/main/index.php?plugin=RadioGroup&theme=material-teal&dir=ltr&pitem=&sort=asc
Title: Re: Load Form doesn't check radiobutton Post by: poeziafree on October 11, 2022, 01:02:42 PM Thanks, Jarry!
Awesome features, indeed! There is just one detail missing: the group should have the parent label, shouldn't it? Otherwise, when used in forms, the radiogroup shows misaligned without a parent label. See the example screenshot below (I have circled the parent label): Title: Re: Load Form doesn't check radiobutton Post by: jarry on October 11, 2022, 08:15:22 PM This code shows how to add a label to the radiogroup.
Code: <form id="ff"> Title: Re: Load Form doesn't check radiobutton Post by: poeziafree on October 15, 2022, 01:36:05 AM Hi, Jarry!
Thank you again! Does validation work on radiogroup? I noticed that required: true doesn't work, for example. Also, $('#gender').radiogroup('enable'); OR $('#gender').radiogroup('disable'); doesn't work too. Please, help. Title: Re: Load Form doesn't check radiobutton Post by: kimmansu on December 22, 2023, 12:57:20 AM https://www.jeasyui.com/forum/index.php?topic=8784.msg23427#msg23427 |