RadRadioButtonList

1 Answer 71 Views
Miscellaneous
David
Top achievements
Rank 1
David asked on 19 Apr 2022, 02:03 AM
In the ClientEvents-OnSelectedIndexChanged would be nice if there was a way to get_oldvalue(). I do it with a hidden field but that would be helpful.

1 Answer, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 20 Apr 2022, 02:46 PM

Hi David,

The RadioButtonList gives access to the old selected item index in the OnSelectedIndexChanged event, so you can used it in order to access the old item value in a similar way:

            function OnSelectedIndexChanged( buttonList, args) {
                var oldIndex = args.get_oldSelectedIndex();
                var oldItem = buttonList.get_items()[oldIndex];
                var oldValue = oldItem.get_value();
            }

Regards,
Vessy
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Miscellaneous
Asked by
David
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Share this question
or