This question is locked. New answers and comments are not allowed.
Hello,
I have a Grid that is in Popup mode for the Client side record edit. I have created a UserControl to display the Model for the user to edit named the same as the Model class and in the Shared folder.
I have implemented the IValidatableObject interface and it works fine with the default popup that Telerik pops up, the method below is called.
// This code is on the Model object that is bound to the Grid rows, the GridModel.
Yet when I use my version that uses the UserControl it displays the model and binds to it fine and posts to the controller, but the TryUpdateModel() method or the evaluation of ModelState.IsValid fail and the Update process does not begin, but my Validate() method does not get called. "My Version" just means that I am not renaming the above mentioned UserControl to force the default behaviour or default Telerik popup form to show.
Does anyone know why the Validate is not being called for the form when the User Control is in the picture?
Regards,
Reid
I have a Grid that is in Popup mode for the Client side record edit. I have created a UserControl to display the Model for the user to edit named the same as the Model class and in the Shared folder.
I have implemented the IValidatableObject interface and it works fine with the default popup that Telerik pops up, the method below is called.
// This code is on the Model object that is bound to the Grid rows, the GridModel.
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)Yet when I use my version that uses the UserControl it displays the model and binds to it fine and posts to the controller, but the TryUpdateModel() method or the evaluation of ModelState.IsValid fail and the Update process does not begin, but my Validate() method does not get called. "My Version" just means that I am not renaming the above mentioned UserControl to force the default behaviour or default Telerik popup form to show.
Does anyone know why the Validate is not being called for the form when the User Control is in the picture?
Regards,
Reid