Good day,
I have a dropdown inside the EditTemplate of a GridColumn (Status). The dropdown doesn't render some times. I also get some errors on the console.
Mind you, this only happens sometimes and I get the following errors in this case.
Code:
<GridColumn Field=@nameof(Order.Status) HeaderText="Status" ValidationRules="@(new { required=true})" TextAlign="TextAlign.Center">
<EditTemplate Context="ord">
@{
var order = (ord as Order);
<label class="e-float-text e-label-top e-edittemplate" style="position:relative;padding-left:0;color:rgba(0, 0, 0, 0.54)">Status</label><br>
<EjsDropDownList HeaderTemplate="Status" TValue="string" ID="Status" Text="@(order.Status)" Value="@(order.Status)" Placeholder="Select Status" DataSource="@orderStatus">
</EjsDropDownList>
}
</EditTemplate>
<FilterTemplate Context="Status"></FilterTemplate>
</GridColumn>
@Code{
public List<string> orderStatus = new List<string> { "Open", "Accepted", "Delivered", "Closed" };
}
Kindly help me.
Regards.
Junaid