We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

The tab does not move to the Row on Grid's EditTemplate

Hi,

I have created a Grid with Inline fields;

As you can see from the attached figure, in Editing if I change the choice of the "Description" column, in the Master column the associated value in the "Mastro" cell and also the "Sottoconto" are entered (therefore both are changed according to the description chosen with the combo)

It happens that after choosing the description value in the combo, and correctly selecting the master and sub-account value, the focus remains locked on the description cell and with the Tab the cursor is not moved to the following cells; But only by hitting enter is the line accepted. How can I move the focus to the next cells with the Tabe and what is the cause?

Thank you

(Place the code)



<GridColumn HeaderText="descrizione" TextAlign="TextAlign.Left" Width="200">

<Template>

@{

var cit = (context as CausaleItem);

Conto ForeignKeyData = GridConti.Where(x => x.id == cit.conto_id).FirstOrDefault();

<span>@ForeignKeyData.descrizionespan>

}

Template>

<EditTemplate>

<SfComboBox ID="ContoId"

TItem="Conto"

TValue="long"

@bind-Value="@((context as CausaleItem).conto_id)"

DataSource="@GridConti"

Enabled="IsEnabled">

<ComboBoxEvents TValue="long" TItem="Conto" />

@*

@{

Conto ForeignKeyData = GridConti.Where(x => x.id == ChildContext.id).FirstOrDefault();

@ForeignKeyData.descrizione

//@ForeignKeyData.descrizione @ForeignKeyData.mastro

}

*@

<ComboBoxFieldSettings Value="id" Text="descrizione">ComboBoxFieldSettings>

SfComboBox>

EditTemplate>

GridColumn>



<GridColumn HeaderText="mastro" AllowEditing="true" AllowAdding="true" TextAlign="TextAlign.Left" Width="200">

<Template>

@{

var cit = (context as CausaleItem);

Conto ForeignKeyData = GridConti.Where(x => x.id == cit.conto_id).FirstOrDefault();

<span>@ForeignKeyData.mastrospan>

}

Template>


<EditTemplate>

@{

var cit = (context as CausaleItem);

if (cit.conto_id > 0)

{

Conto ForeignKeyData = GridConti.Where(x => x.id == cit.conto_id).FirstOrDefault();

<span>@ForeignKeyData.mastrospan>

}

else

{

<span>span>

}

}

EditTemplate>


GridColumn>


<GridColumn HeaderText="sottoconto" AllowEditing="false" AllowAdding="false" TextAlign="TextAlign.Left" Width="200">

<Template>

@{

var cit = (context as CausaleItem);

Conto ForeignKeyData = GridConti.Where(x => x.id == cit.conto_id).FirstOrDefault();

<span>@ForeignKeyData.sottocontospan>

}

Template>


<EditTemplate>

@{

var cit = (context as CausaleItem);

if (cit.conto_id > 0)

{

Conto ForeignKeyData = GridConti.Where(x => x.id == cit.conto_id).FirstOrDefault();

<span>@ForeignKeyData.sottocontospan>

}

else

{

<span>span>

}

}

EditTemplate>

GridColumn>


Attachment: Edit_on_Grid_Inline_3803e895.rar


1 Reply

PS Prathap Senthil Syncfusion Team November 15, 2022 03:57 PM UTC

Hi Biagio,


Greetings from Syncfusion support


Query:” The tab does not move to the Row on Grid's Edit Template


We created the sample based on the information you provided. However, we were unable to reproduce the reported issue in our final version[20.3.0.57]. Please see the attached sample for your reference.


If the reported issue persists, kindly share the following information with us so that we can validate the reported query and provide a solution as soon as possible.


  1. Share with us the entire Grid code snippet along with the model class.
  2. Share with us the NuGet version used.
  3. If possible, kindly share with us the simple issue reproducible sample or modify the reported issue on the above-mentioned sample.


Regards,

Prathap S


Attachment: BlazorGrid_1090ab74.zip

Loader.
Live Chat Icon For mobile
Up arrow icon