I am trying to use InplaceEditor for dropdown list but when I select value It shows duplicate record in List as below
before click on editor
after click on Editor
<SfInPlaceEditor Value="@OfficeValue" CssClass="ml-n2" TValue="string" Mode="@Mode" EditableOn="@EditableOn" Type="Syncfusion.Blazor.InPlaceEditor.InputType.DropDownList" ShowButtons="false" Disabled="@disabled" SubmitOnEnter="true">
<EditorComponent>
<SfDropDownList TItem="ValueModel" TValue="string" @bind-Value="OfficeValue" DataSource="@_offices">
<DropDownListFieldSettings Text="Desc" Value="ID"></DropDownListFieldSettings>
</SfDropDownList>
</EditorComponent>
</SfInPlaceEditor>
Hi Sarvajeet,
We have validated the reported query on our end. Unfortunately, we couldn’t reproduce the reported issue as per your scenario. We also shared a sample for reference. Also, we request you to provide additional details about the issue as mentioned below, This will help us validate the issue further and provide you with a better solution.
1. Issue reproducing sample (or modify the shared sample as per your scenario).
2. Issue replication steps.
3. Video illustration of the issue.
Sample : https://www.syncfusion.com/downloads/support/directtrac/general/ze/InPlaceEditor1155274373
Udhaya Kumar D
Here is my properties for ValueModel, when I change TK int to string it works but when I leave it as int it gives me duplicate result as I send in original request. I am using "public int Tk { get; set; }" at so many places and I want keep TK to int.
public int Tk { get; set; }
public string Desc{ get; set; }
If I am using Datatype int dropdown list as well in Editor then it gives me only TK ID like 1, 2, 3 instead of description
<SfInPlaceEditor Value="@OfficeValue" CssClass="ml-n2" TValue="int" Mode="@Mode" EditableOn="@EditableOn" Type="Syncfusion.Blazor.InPlaceEditor.InputType.DropDownList" ShowButtons="false" Disabled="@disabled" SubmitOnEnter="true">
<EditorComponent>
<SfDropDownList TItem="ValueModel" TValue="int" @bind-Value="OfficeValue" DataSource="@_offices">
<DropDownListFieldSettings Text="Desc" Value="ID"></DropDownListFieldSettings>
</SfDropDownList>
</EditorComponent>
</SfInPlaceEditor>
Hi Sarvajeet,
We have recreated a sample based on the shared code snippet and validated the reported query on our end. Unfortunately, we couldn’t reproduce the reported issue as per your scenario. We also shared a sample and video illustration for reference.
As we mentioned earlier, we request you to provide additional details about the issue as mentioned below, This will help us validate the issue further and provide you with a better solution.
Sample : https://www.syncfusion.com/downloads/support/directtrac/general/ze/InPlaceEditor-209945830
Udhaya Kumar D