GridView with RadioButton – Select One at a Time(codedigest.com)
submitted by
satheeshbabu(1565) 3 years, 4 months ago
If we have a TemplateColumn and include a RadioButton control, it will allow selection of multiple rows. It is because the RadioButton will have different Id and hence it will allow multiple selections. So, we should add some sort of client side functionality that prevents selection of multiple Radio Buttons but one. In this article, we will call a Javascript function on click of RadioButton that checks if there is some other RadioButton in the GridView is already selected to uncheck it leaving the current selection.
|category: ASP.NET
|Views: 334
tags:
CodeDigest.Com ASP.NET another
Everyones tags:
Your Tags: