I have a grid with a dialog template. The error tooltip works correctly on the Email Field but it doesn't show for the Username and Password fields. The annotations are working because the field turns red but the tool tip just doesn't display. See the attached file with the grid and data object with annotations. I can't see any difference between the fields.
Thanks
|
|
There seems to be 2 issues here.
1) If you remove the Password column from the grid then the dialog tool tip for the Password field no longer works. Even with a hidden column it doesn't work.
2) Username had IsPrimaryKey="true" - when I removed that the tool tip began working for this field.
I worked around #1 for now by doing what your sample does and using a template with "****" in it. So I have it working well enough now but this does seem like you have a couple of bugs.
Thanks
Sheldon Parkes
|
<SfGrid DataSource="@GridData" Toolbar="@(new string[] { "Edit" ,"Delete","Update","Cancel" })">
<GridEditSettings AllowAdding="true" AllowEditing="true" AllowDeleting="true" Mode="@EditMode.Dialog" Dialog="DialogParams">
<Template>
@{
var Order = (context as OrdersDetails);
<div>
<div class="form-row">
<div class="form-group col-md-6">
<label class="e-float-text e-label-top">Order ID</label>
<SfNumericTextBox ID="OrderID" @bind-Value="@(Order.OrderID)" Enabled="@((Order.OrderID == null) ? true : false)"></SfNumericTextBox>
</div>
<div class="form-group col-md-6">
<label class="e-float-text e-label-top">User Name</label>
<SfTextBox ID="UserName" @bind-Value="@(Order.UserName)" FloatLabelType="FloatLabelType.Always" Placeholder="User Name"></SfTextBox>
</div>
</div>
<div class="form-row">
<div class="form-row">
<div class="form-group col-md-6">
<SfTextBox ID="Email" @bind-Value="@(Order.Email)" FloatLabelType="FloatLabelType.Always" Placeholder="Email Address"></SfTextBox>
</div>
</div>
</div>
<div class="form-row">
<div class="form-group col-md-12">
<SfTextBox ID="Password" @bind-Value="@(Order.Password)" Type="InputType.Password" FloatLabelType="FloatLabelType.Always" Placeholder="Password"></SfTextBox>
</div>
</div>
</div>
}
</Template>
</GridEditSettings>
<GridColumns>
<GridColumn Field=@nameof(OrdersDetails.OrderID) HeaderText="Order ID" IsPrimaryKey="true" TextAlign="@TextAlign.Center" HeaderTextAlign="@TextAlign.Center" Width="140"></GridColumn>
<GridColumn Field="@nameof(OrdersDetails.Email)" HeaderText="Email" TextAlign="Syncfusion.Blazor.Grids.TextAlign.Left" Width="110"> </GridColumn>
<GridColumn Field=@nameof(OrdersDetails.Freight) HeaderText="Freight" Format="C2" Width="140" TextAlign="@TextAlign.Right" HeaderTextAlign="@TextAlign.Right"></GridColumn>
<GridColumn Field=@nameof(OrdersDetails.OrderDate) HeaderText="Order Date" Format="d" Type="ColumnType.Date" Width="160"></GridColumn>
<GridColumn Field=@nameof(OrdersDetails.ShipCountry) HeaderText="Ship Country" Width="150"></GridColumn>
</GridColumns>
</SfGrid> |