This question is locked. New answers and comments are not allowed.
The problem:
In my edit popup I want to show list of available roles users can be assigned to as an array of checkboxes in check the roles a user already belongs to. The list of roles is dynamic and comes from the database and thus cannot be hard coded.
The grid would look something like:
User Name | Roles
Bob | Admin,ReadWrite,ReadOnly
Tom | ReadOnly
So the pop-up would look something like:
User Name: Bob
Roles:
[x ] Admin
[x ] ReadWrite
[x ] Readonly
I don't see this supported inherently by the mvc grid control so I've been trying to find a suitable work around.
I was thinking that overriding the OnEdit event of the grid might allow me to replace the content of the edit popup with a view. I've used a similar method in the asp.net radgrid using radwindows fired by the edit command... surely someone's already run into this and has a workable solution?
In my edit popup I want to show list of available roles users can be assigned to as an array of checkboxes in check the roles a user already belongs to. The list of roles is dynamic and comes from the database and thus cannot be hard coded.
The grid would look something like:
User Name | Roles
Bob | Admin,ReadWrite,ReadOnly
Tom | ReadOnly
So the pop-up would look something like:
User Name: Bob
Roles:
[x ] Admin
[x ] ReadWrite
[x ] Readonly
I don't see this supported inherently by the mvc grid control so I've been trying to find a suitable work around.
I was thinking that overriding the OnEdit event of the grid might allow me to replace the content of the edit popup with a view. I've used a similar method in the asp.net radgrid using radwindows fired by the edit command... surely someone's already run into this and has a workable solution?