Posted 19 March 2021, 11:07 am EST
Hi!
I’m using the auto complete control in an asp.net core 3.1 project, and when the page displays, it fails to show de value into the display-member-path, it shows the value in the “EnvioId” field from the model.
The following code shows how I implemented the control in the view.
When it displays, it shows “0”, the id default value, if a value is selected and I reload the view with data, it shows the number, but never de value stores in display member path until I manually select it.
<c1-auto-complete for="EnvioId" display-member-path="Descripcion" selected-value-path="EnvioId" css-match="highlight" class="form-control" id="cboEnvios">
<c1-items-source source-collection="Model.Envios"></c1-items-source>
</c1-auto-complete>
If I press the pulldown button or type some text it shows the data and work normally. But if the form reload, it continue to show the Id value instead of the text.
Any suggestion how to solve it?
Thanks in advance!