BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
public static class Extension
{
static Extension()
{
EssentialJavaScript.MetadataProvider = new MvcModelMetadataProvider();
}
// To create helper using extension method
public static DropDownListPropertiesBuilder MyDDL<TModel, TValue>(this EssentialJavaScriptFor<TModel> html, Expression<Func<TModel, TValue>> expression, DropDownListProperties model)
{
return DropDownListExtenaion.DropDownListFor(html, expression, model, null, null);
}
} |
@Html.EJ().MyDDL(Model => Model.DropData, (Syncfusion.JavaScript.Models.DropDownListProperties)ViewData["properties"]).SelectedIndex(0) |