html-helper


Displaying multiple values with Telerik ASP.Net MVC extensions with the ForeignKey column


From what I've read, it doesn't seem possible to associate a ForeignKey column as a multi-select listbox. Is this true?
If it's not true, I am famiiar with using the ForeginKey column and would like to know how to accomplish this with a code snippet, if possible.
If it's true that it's not supported (I have the latest extensions of the tools), how would I go about to implement this? If Telerik doesn't have a work around, what I'd like to to is below.
The next best thing would be to display the users in multiple rows (each distinct value selected for the specified group), I guess. How would I implement this scenario using the ForeignKey or otherwise? Meaning, there can be many users for many groups. A picture is worth a thousand words. Please see below what I'd like to implement.
fyi, I have the value and text info for both columns, but the Groups column is not a listbox; it's a textbox and has the text value displayed. The Users ListBox would have the value selected for each user (assume that the users listbox contains a list of 10 users).
Grid abc
Groups column (contains text value) Users column (this is a ForeignKey ListBox)
----------------------------------- -----------------------------------------------------------
grp1 user1
grp1 user2
grp1 user3
grp2 user2
grp2 user3
Personally I suggest you to create hierarchy of Grid to edit such relation.
e.g.
grp1
user1
user2
user3
grp2
user2
user3
Implementation about hierarchy with editing can be found here.
Option 2 -> Since the Extensions does not have a multi select it would not be so easy to add such editor template. Anyway if you implement the multi-select somehow by hand you can use add it as editor as shown here.
Regarding ForeignKey - it is not an option.

Related Links

Equivalent for MvcHtmlString in ASP.NET 5?
How can i resize image in html-helper tagbuilder
TextBoxFor title to display the current text
Converting C# Razor view syntax for checkboxlist into VB.Net
Table of content is not proper in chm file
Web helpers for MVC 5?
asp.net mvc3 or mvc4 html helper is not working
Configure the Javascript function + Html Helper
Displaying multiple values with Telerik ASP.Net MVC extensions with the ForeignKey column
Custom html helpers in MVC 4
Return multiple checkbox from Custom html helper in mvc 3r
Getting Class Property Values from Linq Expression In Html Helper MVC3
format htmlhelper date field to dd/mm/yyyyy
How to create internal Linking inside CHM help file
simple_html_dom timer?
Printing Html with razor view engine

Categories

HOME
osgi
path-finding
homebrew
bpmn
at-command
rdf
cakephp-2.5
jgroups
jxls
echarts
azure-media-services
add
fancybox-3
commonmark
fortumo
apache-metamodel
reactcsstransitiongroup
evopdf
ab-testing
oxyplot
nhibernate-envers
reverse-proxy
intentfilter
wkwebview
chromium-embedded
angular2-aot
microsoft-sync-framework
sparse-matrix
nhapi
elasticsearch-ruby
gitignore
delicious-api
binary-data
iframe-resizer
twilio-api
airconsole
google-qpx-express-api
column-family
windows-dev-center
repo
form-data
gammu
y86
html5-fullscreen
plsql-psp
disassembling
qwerty
hockeyapp
unspecified
particles.js
fedex
g-code
firebase-admin
nand2tetris
no-www
midl
outlook-api
netcdf4
gpx
s
appcompat
carrot
kbuild
namecoin
mako
jspdf-autotable
orthogonal
watchconnectivity
angular-strap
dstu2-fhir
mikroc
blackberry-10
whois
rvest
bluemix-app-scan
rhino-servicebus
google-places
coveralls
arcanist
iiviewdeckcontroller
unity5.2.3
e10s
nsmutabledictionary
dia
jscript.net
phalanger
titanium-modules
fluentautomation
imdbpy
aqtime
opcache
shellexecute
smtp-auth
itmstransporter
typoscript2
coderush
venn-diagram
propertyeditor
chrono
buildr
whoosh
gcj
xtype
locate
w3wp.exe

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App