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

How to create an extension method on IHtmlHelper<dynamic>
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?

Categories

HOME
bluetooth
date
proxy
urbancode
drivers
plot
dot
cvs
rsync
opengl-es-2.0
datastax-java-driver
onelogin
webrequest
elasticsearch-hadoop
communication
vifm
wheelnav.js
quicklook
event-handling
fatal-error
evopdf
flux
samoa
nas
java-3d
opencover
csrf-protection
dcevm
tibco-mdm
jndi
android-widget
one-to-many
xacml
facebook-apps
lightswitch-2013
bosh
google-cloud-endpoints-v2
http-status-code-503
ioio
ghost4j
force-layout
fusionpbx
revolution-slider
file-format
simplexml
bitbucket-pipelines
scaffold
xcode-extension
dynamics-crm-2013
bootstrapper
mesos-chronos
grid.mvc
s
sencha-touch-2.3
revapi
prolog-setof
worksheet
dandelion
sqlbulkcopy
flutterwave
dwscript
visual-c++-2008
spring-android
rotativa
log4c
ado.net-entity-data-model
mikroc
jwplayer7
testng-dataprovider
wapiti
ford-fulkerson
libressl
tarjans-algorithm
tableau-online
twirl
splash
interrupted-exception
sailfish-os
iiviewdeckcontroller
remobjects
inmobi
e10s
pick
qpainter
issuu
openexr
mesa
funcunit
valueconverter
expected-exception
app42
sitemesh
drools-planner
automount
newtonscript
viewswitcher
regsvr32
libc++
gnustep
stage
spyware
deobfuscation
xmemcached
horizontal-accordion
floating
sudzc
asp.net-mvc-areas
gamequery
jquery-ui-droppable
firefox-5
firefox4
uimenucontroller
anti-piracy
premature-optimization
procedural-music
putchar
mdac
ugc

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App