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

Show Table Within Cell

4 Answers 96 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Taibe
Top achievements
Rank 1
Taibe asked on 15 May 2012, 02:54 PM
I have a need to show a table-like representation of a list of data within a cell of my gridview. The gridview is bound to a custom collection of objects and I need one cell to show codes related to the object. It should show the codes as a 3-column table (or list) with columns: ID  Code  Description. I can't use a nested gridview for this because the user should not have to expand anything in order to view the codes - they need to be visible directly in the main gridview's cell. The gridview is read-only. Is there any way I can accomplish this?

Thanks!

TJ

4 Answers, 1 is accepted

Sort by
0
Richard Slade
Top achievements
Rank 2
answered on 15 May 2012, 03:55 PM
Hello, 

You might want to look at creating a custom cell to do this. Please have a look at the documentation on custom cells here

Hope that helps
Richard
0
Taibe
Top achievements
Rank 1
answered on 15 May 2012, 04:36 PM
Richard,

Thank you for your reply. I think that I will need to create a custom cell. I'm thinking of using the RadListElement within the cell. Can you advise me on how to databind it to the list of codes that is a child of the object in my custom collection? My object hierarchy looks something like this:

    Order (List) - my grid is bound to the list of Orders
        Payment - each order has a Payment
            Codes (List) - each Payment has a list of Codes. I want to bind the ListElement in my custom cell to this list of Codes


Thanks,
Taibe
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 17 May 2012, 11:30 AM
Hello, 

Please see my answer to your other post at this link
When possible, it's best just to open one forum post on a subject which will allow Telerik to review the threads quicker. 
I hope the answer in the other thread is useful
Richard
0
Taibe
Top achievements
Rank 1
answered on 17 May 2012, 01:45 PM
Thank you, Richard. Your answer was awesome - exactly what I need to do. I'm sorry about the double posting - am a newbie to the Telerik forums.
Tags
GridView
Asked by
Taibe
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Taibe
Top achievements
Rank 1
Share this question
or