This is a migrated thread and some comments may be shown as answers.

Validation

1 Answer 42 Views
RadioButtonList
This is a migrated thread and some comments may be shown as answers.
Fit2Page
Top achievements
Rank 1
Iron
Veteran
Iron
Fit2Page asked on 10 Jan 2017, 10:10 AM

Hi,

 

Trying to use this new control.

What about validation?

I get:

 

 

Control 'rbl_shipment' referenced by the ControlToValidate property of 'rbl_shipmentRequired' cannot be validated.

 

Marc

1 Answer, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 12 Jan 2017, 02:04 PM

Hello,

RadButton and any other components from the button family (like RadPushButton, RadCheckBoxButton and so on) does not support the RequiredFieldValidator. This behavior is the same for the native ASP button components as well and conceptually cannot be validated using a RequiredFieldValidator.  

The only button-related components that, by design, should support the RequiredFieldValidator integration are  CheckBoxList and RadioButtonList controls. However, this functionality will be available with the next release of the Telerik UI for ASP.NET AJAX suite. You can find more information about that in this feedback item: https://feedback.telerik.com/Project/108/Feedback/Details/208616.

As suggested in the feedback portal item linked and in this article (that will be live shortly)—https://github.com/telerik/ajax-docs/blob/30d60404444b8e2ca97f0d1cbdcd9dad941cd103/controls/checkboxlist/functionality/aspnet-validators-support.md—you can use the asp:CustomValidator control to apply any validation logic you need to accomplish.    

Regards,
Ianko
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
RadioButtonList
Asked by
Fit2Page
Top achievements
Rank 1
Iron
Veteran
Iron
Answers by
Ianko
Telerik team
Share this question
or