Hello
I am using in the in-build grid edit popup form in the editmode. Each of the grid columns have editortemplate that has an associated TelerikValidationMessage control to show the inline validation messages. I am also using ValidatorTemplate to show the validation messages onces the save action is made and the error comes in the model state. My issue is I only want to show the inline validation message and not the default validation summary that comes with the editform. Is there a way to disable the validation summary on the editform. Below is my code and and image of what it is looks now, and what I am trying to accomplish.
//Editor Template for the Grid Column with Validation Message
<GridColumn Field="@(nameof(_defectObj.Name))" Title="Name" Width="200px" TextAlign="ColumnTextAlign.Left" FieldType="@(typeof(string))" FilterMenuType="Telerik.Blazor.FilterMenuType.Menu" >
<EditorTemplate>
@{
_defectEdit = (DefectModel)context;
<TelerikTextBox @bind-Value="_defectEdit.Name" ></TelerikTextBox>
<TelerikValidationMessage For="@(() => _defectEdit.Name)"></TelerikValidationMessage>
}
</EditorTemplate>
</GridColumn>
<GridSettings>
<GridPopupEditSettings MaxWidth="700px" MaxHeight="600px" Width="500px" Height="600px" MinHeight="200px" MinWidth="300px" Title="@(_isNewGridRow == true? "Add New Defect": "Edit " + _currentDefectName)">
</GridPopupEditSettings>
<GridPopupEditFormSettings Orientation="FormOrientation.Horizontal" ButtonsLayout="FormButtonsLayout.Center" Columns="1" ColumnSpacing="25">
</GridPopupEditFormSettings>
<GridValidationSettings Enabled="true">
<ValidatorTemplate>
<DataAnnotationsValidator></DataAnnotationsValidator>
<ProblemDetailsValidator @ref="_customValidation"></ProblemDetailsValidator>
</ValidatorTemplate>
</GridValidationSettings>
</GridSettings>
Image shows how both ValidationMessage display and ValidationSummary display. I would only like to show the Validation Message along the input textbox and not the validation summary. How can I accomplish this.
Thank you.
Beena.
Hi Beena,
Thank you for reaching out! We are currently looking into it and will need some more time to revise the case in detail. I will get back to you with an update as soon as possible.
Thank you for your patience in advance!