Why InplaceEditor with DropDownList stopped binding field after being modified?

Hi team,

I've got another problem here and hope for your help.

I use an InplaceEditor with DropDownList to display and allow client to modify some field of a single item from a list. The list is demonstrated by a DataGrid. Once an item is selected in the grid, the InplaceEditor updates and displays the Enum Gender field. The issue is, if I click different items without change any value through InplaceEditor, everything works fine, but if I modify once, the value in the InplaceEditor stopped updating itself and get stuck. Even though I select different items, the value won't update as before.

I submitted a sample project to demonstrate the problem with a footage to show the detail. I keenly hope you can help me resolve it by supplying a correct use case, since I doubt that I have some misunderstanding of the component usage. After all, this kinda list-select-update scene is very common.

In the footage, I also showed another odd thing. While the InplaceEditor is stuck, if I try to change it again, and don't click outside of the editor and directly select another item from the list(shown from about 00:00:44 to 00:00:57), 

Best wishes.

Attachment: InplaceEditorDropDownList_ScreenShot_82c80af9.7z

4 Replies

BR Brian May 3, 2020 08:59 AM UTC

It seems that one of the attachments (the sample project) get lost, so I resubmit it again. Sorry for that.

Attachment: InplaceEditorDropDownList_bc26d308.7z


IS Indrajith Srinivasan Syncfusion Team May 4, 2020 11:04 AM UTC

Hi Genii,

Greetings from Syncfusion support,

We have validated your shared sample. We have provided two-way binding support for the SfInPlaceEditor, hence binding dropdown value using the Value property acts as a one-way binding. Instead, configure the SfInPlaceEditor with @bind-Value to resolve the issue from your end which acts as a two-way binding.
 
 
<SfInPlaceEditor @bind-Value="SelectedPersonnel.Gender" /> 

Please let us know if the solution helps,

Regards,
 
Indrajith 



BR Brian May 5, 2020 08:13 AM UTC

Yes it works. Thank you so mush.


IS Indrajith Srinivasan Syncfusion Team May 5, 2020 02:50 PM UTC

Hi Genii,

Thanks for the update,

We are glad that your reported issue is resolved. Please let us know if you need any further assitance.

Regards,
Indrajith

Loader.
Up arrow icon