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

Show in one column inner list inside another list

1 Answer 96 Views
Grid
This is a migrated thread and some comments may be shown as answers.
reguapo
Top achievements
Rank 1
reguapo asked on 03 Feb 2014, 04:18 PM
what I have is List(of Notification) with Notification having a List(of SendAttachments), I want to show all the fields for the notification and a column with multiples links (one link per attachments in the List(of SendAttachments) in order for the user to click on the attachment that he wants.

I got this in my codebehind:
1.rgvNotification.DataSource = CType(GetNotificationHistoryByDetailId(CDetailID), IEnumerable)
2.rgvNotification.Rebind()


and this in my aspx:
01.<Columns>
02.    <telerik:GridBoundColumn
03.        DataField="NotifiedDate"
04.        HeaderText="Notified Date"
05.        UniqueName="NotifiedDate">
06.        <HeaderStyle Width="140px"></HeaderStyle>
07.    </telerik:GridBoundColumn>
08.    <telerik:GridBoundColumn
09.        DataField="NotifiedPersonName"
10.        HeaderText="Notified Person(s)"
11.        UniqueName="NotifiedPersons">
12.        <HeaderStyle Width="150px"></HeaderStyle>
13.    </telerik:GridBoundColumn>
14.    <telerik:GridBoundColumn
15.        DataField="NotifiedEmail"
16.        HeaderText="Notified Email(s)"
17.        UniqueName="NotifiedEmails">
18.        <HeaderStyle Width="410px"></HeaderStyle>
19.    </telerik:GridBoundColumn>
20.    <telerik:GridBoundColumn
21.        DataField="Message"
22.        HeaderText="Message"
23.        UniqueName="Message">
24.        <HeaderStyle Width="410px"></HeaderStyle>
25.    </telerik:GridBoundColumn>
26.    <telerik:GridBoundColumn
27.        DataField="Attachments.Count"
28.        HeaderText="Sent Docs"
29.        UniqueName="SentDocs">
30.        <HeaderStyle Width="100px"></HeaderStyle>
31.    </telerik:GridBoundColumn>
32.     
33.</Columns>

but I don't know how to create the links dynamically in the last column, any Help?


1 Answer, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 06 Feb 2014, 02:28 PM
Hi Daniel,

A possible solution is to have a template column where you could display a list with all the links. Please examine the following help article which describes how to implement such column.

Regards,
Kostadin
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the UI for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Grid
Asked by
reguapo
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Share this question
or