Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
141138 | Nov 26,2018 12:02 PM UTC | Nov 27,2018 07:06 AM UTC | ASP.NET MVC - EJ 2 | 1 |
![]() |
Tags: DropDownList |
@Html.EJS().Tooltip("Tooltip").ContentTemplate(@<div>
@Html.EJS().DropDownList("dropdowns").Width("300px").Placeholder("Select a value").Value((string)ViewBag.value).DataSource((object)ViewBag.data).Fields(new DropDownListFieldSettings
{ Text = "Name", Value = "Eimg" }).Render()
</div>).BeforeRender("onBeforeRender").Render()
<script>
function onBeforeRender(e) {
let value = document.getElementById('dropdowns').ej2_instances[0].text;
this.content = value;
this.dataBind();
} |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.