Mithun Pradhan

Mithun Pradhan

  • 1.6k
  • 150
  • 21.1k

How to bind StatusEnum ejs-dropdownlist?

Sep 13 2023 12:55 PM

My code

public enum StatusEnum
{
    NotRegistered = 0,
    Pending = 1,
    Accepted = 2,
}
<div>
    <label class="form-label">Select Status :</label>
    <ejs-dropdownlist id="drpStatus" cssClass="e-custom" dataSource=""
                      ejs-for=""
                      placeholder="Select" popupHeight="220px" allowFiltering="true">
        <e-dropdownlist-fields text="Text" value="Value"></e-dropdownlist-fields>
    </ejs-dropdownlist>
</div>

Answers (2)