Page 1 of 1

[ANGULAR] I Have some questions about radiogroup

Posted: Tue Sep 27, 2022 5:03 am
by boyitech

Hi.
How can i put these radios in the same line?
Image
And how can i set radios value?Here is my code.
Image
Image


Re: [ANGULAR] I Have some questions about radiogroup

Posted: Tue Sep 27, 2022 7:48 am
by tasnim

Hi,
You can use this CSS to achieve that

fieldset.b-radiogroup-content {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

Re: [ANGULAR] I Have some questions about radiogroup

Posted: Tue Sep 27, 2022 8:05 am
by boyitech

Thanks.It works.And i want to listen the change about these radios what should i do?


Re: [ANGULAR] I Have some questions about radiogroup

Posted: Tue Sep 27, 2022 8:43 am
by boyitech

Here has a new question.When I have chosen the first row radio then choose the second row radio.The first chosen radio has been cleared.What should i do?
Image
It will be like this picture.
Image


Re: [ANGULAR] I Have some questions about radiogroup

Posted: Tue Sep 27, 2022 8:46 am
by tasnim

You can listen to https://bryntum.com/docs/grid/api/Core/widget/Radio#event-change listener

            widgets : [{
                field : 'Check Result',
                type : 'radiogroup',
                text : 'OK',
                style : 'flex-direction : row;',
                name : 'check',
                flexDirection : 'row',
                // change listener
                listeners : {
                    change(event) {
                        console.log(event)
                    }
                },

Re: [ANGULAR] I Have some questions about radiogroup

Posted: Tue Sep 27, 2022 10:32 am
by boyitech

Now I can listen the changes,But there has new questions.Can you tell me what should i do?
Image
Image


Re: [ANGULAR] I Have some questions about radiogroup

Posted: Tue Sep 27, 2022 2:29 pm
by tasnim

Hi,
I just reproduced a bug here, I've created a ticket for that here it is https://github.com/bryntum/support/issues/5327. We'll investigate it deeply.

Thank you for reporting and your questions.

Good Luck :),
Tasnim