tags:

views:

45

answers:

1

Again Im probably being stupid, I am having trouble with listener events of objects.

I have:

new Ext.form.Radio({
                    boxLabel:'Yes',
                    id: 'car_price_type_yes',
                    name: 'car_price_type',
                    value: 1,
                    listeners: {
                        select: function (e) {
                            alert('x');
                        }
                    }
                })

I am trying to get the alert to appear when I click the radio button.

Thanks.

A: 

You want the check event. You really should become more familiar with the docs, it will help with this kind of question.

bmoeskau
Thanks. Sorry but when I change 'select' to check, I still do not get the alert. I have also tried taking it outside of the listeners brace.
babadbee
You must have some other issue because I copied your code above, changed the event to 'check' and I got the alert as expected.
bmoeskau