This is a migrated thread and some comments may be shown as answers.

Displaying multipel values with ForeignKey column

3 Answers 37 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Bill
Top achievements
Rank 2
Bill asked on 20 Feb 2013, 11:24 PM
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    

3 Answers, 1 is accepted

Sort by
0
Bill
Top achievements
Rank 2
answered on 21 Feb 2013, 12:22 AM
I could desperately use some kind of work-around, etc using the Telerik extensions as I have built my entire application around them and have come up agaisnt this road block, of which there is no turning back.

I would appreciate any help...........
0
Bill
Top achievements
Rank 2
answered on 21 Feb 2013, 12:52 AM
Note that this can be a jQuery implementation, etc.

How would I actually insert the jQuery script into the mix of the items in the Telerik grid?
0
Bill
Top achievements
Rank 2
answered on 21 Feb 2013, 01:04 AM
I also would need to know how to embed this new functionality within the Telerik grid....
Tags
Grid
Asked by
Bill
Top achievements
Rank 2
Answers by
Bill
Top achievements
Rank 2
Share this question
or