Grid Validation

I am having an issue with validation inside of a Grid. It does not fire.

There must be something obvious I am doing wrong because I am able to get the validation working outside of the Grid.

<RadzenTemplateForm TItem="InputOrderSubmission" Data=@_inputOrderFormBase.inputOrderSubmission Submit="HandleValidSubmit" InvalidSubmit="HandleInvalidSubmit">            
	<RadzenFieldset Text="Order Details" >
	<RadzenButton Icon="add_circle_outline" style="margin-bottom: 10px" Text="Add New Part" Click="@InsertRow" />
	<RadzenDataGrid  IsLoading=@_inputOrderFormBase.Busy
			@ref="_inputOrderFormBase.lineItemGrid"
			Data="@_inputOrderFormBase.inputOrderSubmission.OrderLines" 
			TItem="InputOrderLineSubmission">
        <Columns>
<RadzenDataGridColumn TItem="InputOrderLineSubmission" Property="Item1" Title=@screenLayout.Label>
                                        <EditTemplate Context="orderLine">
                                            <RadzenTextBox @bind-Value=@orderLine.PartNumber Name=@screenLayout.FormFieldName />

					<RadzenRequiredValidator 
						Component="Item1"
						Text=@(string.Concat(screenLayout.Label,  " is required "))
						Popup=true 
						Style="position: relative" />

				</EditTemplate>
			</RadzenDataGridColumn>
...

I had a similar issue trying to get the validator to work with an AutoComplete. It turned out that I hadn't included a "Name" field in the AutoComplete definition. The "Name" field in the component you are validating must match the "Component" field in your validator.

Correct, and I fixed where I had the missmatch, but still no luck.

<RadzenDataGridColumn TItem="InputOrderLineSubmission" Property="Item1" Title=@screenLayout.Label>
<EditTemplate Context="orderLine">
<RadzenTextBox @bind-Value=@orderLine.PartNumber Name=@screenLayout.FormFieldName />
<RadzenRequiredValidator 
    Component=@screenLayout.FormFieldName
    Text=@(string.Concat(screenLayout.Label,  " is required "))
    Popup=true 
    Style="position: relative" />
</EditTemplate>
</RadzenDataGridColumn>

Interesting. You're going to need a Radzen engineer to answer this one. The only thing I can think, and you can test this manually by using hard coded names, is that the Radzen component is doing something BEFORE your variable declaration is finished (if that makes sense). It's going to come down to a timing thing I think.

Hi tmeehan,
Could you solve this problem, please?