|
<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.
The provided information will help us analyze the problem, and provide you a solution as early as possible.
Regards,
Renjith R