i need help with enum multi select i want to implement.
here is my enum model
using System.ComponentModel.DataAnnotations;
namespace NotificationService.Model
{
public enum NotificationType
{
[Display(Name = "Sms")]
SMS = 0,
[Display(Name = "Email")]
EMAIL = 1,
[Display(Name = "Push")]
PUSH = 2
}
}
My model where i wan to save my list of notification type
namespace Dashboard.Models
{
public class NotificationConfig
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public string Id { get; set; }
[Required]
public List<NotificationType> NotificationType { get; set; }
}
}
view i started putting my multi select component, but i don't know how to make this work, my goal is to select multiple notification type, can you help me do this
Below line does not work becouse i did not put any datasource.
<ejs-multiselect id="box" dataSource="" placeholder="Select Notification Types" mode="Box"></ejs-multiselect>