Generic model cmoponent numeric in place editor isnt working

Hi,

I am trying to get a dynamically generated generic SfInPlaceEditor working. The string version works fine but the int and decimal versions do not work. They display the initial value but then do not update when the value is changed, or the generic model is switched dynamically. (note that formItem is a reflected PropertyInfo derived from the generic model fed into the component).


@typeparam T1

@typeparam T2

<SfInPlaceEditor Type="Syncfusion.Blazor.InPlaceEditor.InputType.Numeric" Value="(decimal?)formItem.GetValue(ScreenModel)" TValue="decimal?">

<EditorComponent>

<SfNumericTextBox Value="(decimal?)formItem.GetValue(ScreenModel)" TValue="decimal?"></SfNumericTextBox>

</EditorComponent>

</SfInPlaceEditor>

@code{

[Parameter]

public T1 EditedEntity { get; set; } = default!;

[Parameter]

public T2 ScreenModel { get; set; } = default!;

}


Thanks


1 Reply

PK Priyanka Karthikeyan Syncfusion Team March 24, 2025 01:28 PM UTC

Hi Michael Samy,

 

Thank you for reaching out to us regarding the In-Place Editor with the numeric textbox. 


We’ve created a custom sample demonstrating the numeric textbox functionality in the InPlaceEditor and have been unable to reproduce the issue you’ve described. For your reference, we’ve included the sample code and a video illustration below:


Sample Code: https://blazorplayground.syncfusion.com/hjrSZAVffvVjNmlp



 

To help us better understand and address your specific scenario, could you kindly share the following details?


  • Modifications needed: If our sample differs from your implementation, please highlight the changes required to align it with your scenario.
  • Reproducible sample: Share a simplified version of your code where the issue occurs.
  • Steps to replicate: Clearly outline the steps to reproduce the issue.
  • Additional context: Any screenshots, videos, or error logs would be invaluable.

Providing these details will enable us to pinpoint the problem quickly and offer a prompt resolution. We appreciate your cooperation and look forward to assisting you further.


Thank you for your understanding.

 

Regards,

Priyanka K


Loader.
Up arrow icon