Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
147974 | Sep 30,2019 12:57 PM UTC | Oct 1,2019 01:04 PM UTC | ASP.NET Core - EJ 2 | 1 |
![]() |
Tags: DataGrid |
<div>
. . . .
<ejs-multiselect id="Memberof" value="@ViewBag.groupchecked" dataSource="@ViewBag.groups" . . . >
<e-multiselect-fields text="Group" value="GroupVals"></e-multiselect-fields>
</ejs-multiselect>
</div>
[Controller.cs]
ViewBag.groupchecked = new string[] { "White", "Purple" };
Your requirement you have to assign value instead of above like below
ViewBag.groupchecked = new string[] { "5", "6" };
[Model.cs]
. . . . .
groups.Add(new UserGroups { Group = "White", GroupVals = "5" });
groups.Add(new UserGroups { Group = "Purple", GroupVals = "6" });
. . . . . .
return groups;
|
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.