Hi,
I have a page with a dropdownlist element defined like this:
<div class="form-group">
@Html.LabelFor(model => model.IdCiudad, htmlAttributes: new { @class = "control-label col-md-4" })
@Html.EJS().DropDownListFor(model => model.IdCiudad).DataSource((IEnumerable<Credito.Models.CiudadViewModel>)ViewBag.Ciudades).Fields(new Syncfusion.EJ2.DropDowns.DropDownListFieldSettings { Text = "Nombre", Value = "IdCiudad" }).Render()
@Html.ValidationMessageFor(model => model.IdCiudad, "", new { @class = "text-danger" })
</div>
But, I need to select a value and show the correspondent text using javascript.
I am using this: var ddlObj1 = new ej.dropdowns.DropDownList({
value: $("#IdCiudad").val()
});
ddlObj1.appendTo("#IdCiudad");
but it creates a second dropdownlist over the one already created.
How can I get the instance of a syncfusion object? It is not as clear as it is in version (EJ1), and documentation is very poor.
Sorry to express my annoyance but, I feel frustrated
I am consulting this urls for documentation:
https://ej2.syncfusion.com/aspnetmvc/documentation/introduction/
https://ej2.syncfusion.com/javascript/documentation/introduction/
but is not clear, not enough, no samples on that.
There are others links where I could find documentation?
Regards,
Juan J.