Problem changing InPlaceEditor value from DropDownList event

In the sample code below, selecting an item from the dropdown correctly changes the value displayed in the in-place editor textbox except when I come back to select the initial value after first selecting a different value. Then, the value doesn't change. Only if I click on the textbox does the correct value then show.

<div>
    <SfInPlaceEditor Mode="Syncfusion.Blazor.InPlaceEditor.RenderMode.Inline"
                     EditableOn="EditableType.Click"
                     Type="Syncfusion.Blazor.InPlaceEditor.InputType.Text"
                     TValue=string
                     ShowButtons="false"
                     Disabled="false"
                     @[email protected]
                     SubmitOnEnter="true"
                     CssClass="value-editor">
        <EditorComponent>
            <SfTextBox @[email protected]></SfTextBox>
        </EditorComponent>
    </SfInPlaceEditor>
</div>
<div>
    <SfDropDownList TValue="int"
                        TItem="QuantityModel"
                        CssClass="uom-selector"
                        DataSource=@QuantityList
                        [email protected]
                        PopupHeight="200px"
                        PopupWidth="140px">
            <DropDownListTemplates TItem="QuantityModel">
                <ItemTemplate>
                    <span><span>@((context as QuantityModel).Value)</span> <span>@((context as QuantityModel).Symbol)</span></span>
                </ItemTemplate>
                <ValueTemplate>
                    <span>@((context as QuantityModel).Symbol)</span>
                </ValueTemplate>
            </DropDownListTemplates>
            <DropDownListEvents TItem="QuantityModel" TValue="int" ValueChange="SelectHandler"></DropDownListEvents>
            <DropDownListFieldSettings Text="Symbol" Value="UnitValue"></DropDownListFieldSettings>
        </SfDropDownList>
</div>

@code {

    public QuantityModel QuantityToShow = new QuantityModel {Symbol = "B", UnitValue = 1, Value = "One"};
    List<QuantityModel> QuantityList = new List<QuantityModel>
    {
        new QuantityModel {Symbol = "A", UnitValue = 0, Value = "Zero"},
        new QuantityModel {Symbol = "B", UnitValue = 1, Value = "One"},
        new QuantityModel {Symbol = "C", UnitValue = 2, Value = "Two"},
    };

    public void SelectHandler(ChangeEventArgs<int, QuantityModel> args)
    {
        QuantityToShow = args.ItemData;
    }

    public class QuantityModel
    {
        public string? Value { get; set; }
        public int UnitValue { get; set; }
        public string Symbol { get; set; }
    }

}

2 Replies 1 reply marked as answer

IS Indrajith Srinivasan Syncfusion Team January 28, 2021 01:48 PM UTC

Hi Dave,  

Greetings from Syncfusion support,
 
 
We have validated your reported query and have considered “Inplace-editor value property is not updated properly ” as a bug from our end and it will be included with our patch release on 9th February
 
You can track the status of the feature from the linked feedback task: https://www.syncfusion.com/feedback/21868/ 

Regards,
Indrajith
 



RK Revanth Krishnan Syncfusion Team February 10, 2021 02:35 PM UTC

Hi Dave, 
 
  
Thanks for the patience.  
  
We have resolved the reported issue ”In-place Editor value property is not updated properly” with the package version 18.4.42.    
Can you please upgrade your package to this version to resolve the issue on your end?  
  
 
Regards,      
Revanth     


Marked as answer
Loader.
Up arrow icon