Validation Message not Shown in Grid Dialog
|
<GridColumn Field="PhoneNumber" HeaderText="Mobile Number" AllowFiltering="false">
<Template Context="cont">
...
</Template>
<EditTemplate Context="con">
<label>Mobile Number</label>
@{
var c = (con as User);
<SfMaskedTextBox ID="PhoneNumber" @bind-value="@c.PhoneNumber" Mask="(###) ###-####"></SfMaskedTextBox>
}
</EditTemplate>
</GridColumn>
|
Hi Renjith, when using GridForeignColumn it will do the border highlighting validation but does not show the tooltip.
Hi Mason,
We checked this by creating a sample from our side, but the validation messages shows fine for ForeignKey columns with EditTemplate from our side. We are attaching the sample prepared with latest version for your reference.
|
<GridForeignColumn Field=@nameof(Order.EmployeeID) ForeignKeyField="Id" HeaderText="Employee Name" ForeignKeyValue="FirstName" ValidationRules="@(new ValidationRules{ Required=true})" ForeignDataSource="@Employees" Width="150"> <EditTemplate> <SfAutoComplete ID="EmployeeID" TItem="EmployeeData" TValue="int?" @bind-Value="@((context as Order).EmployeeID)" DataSource="@Employees"> <AutoCompleteFieldSettings Value="Id" Text="FirstName"></AutoCompleteFieldSettings> </SfAutoComplete> </EditTemplate> </GridForeignColumn>
|
Kindly download and refer the attached sample and check this from your side. If you are still facing difficulties, then the following details would be helpful for us to proceed further.
- Share a simple issue reproducing sample for us to validate further.
- Or if possible reproduce the problem with the attached sample and share with us for further analysis.
- Share the exact scenario you are facing the reported problem.
- Share complete grid rendering codes along with model class codes.
The provided information will help us analyze the problem, and provide you a solution as early as possible.
Regards,
Renjith R
Attachment: ServerApp_2afa45fe.zip
- 3 Replies
- 3 Participants
- Marked answer
-
CF Carl Ford
- Dec 11, 2020 05:14 PM UTC
- Aug 1, 2022 09:03 AM UTC