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

GridAttachmentColumn

1 Answer 300 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kjell
Top achievements
Rank 1
Iron
Iron
Kjell asked on 11 Apr 2016, 11:11 AM

I use 2 SqlDataSource to my RadGrid. The GridAttachmentColumn get AttachmentData from SqlDataSource3 and the rest of the grid from SqlDataSource1

Byt the FileNameTextField and DataTextField gets the Imagename from SqlDataSource1. How get i all from SqlDataSource3 AttachmentDataField, FileNameTextField and DataTextField?

 

<telerik:GridAttachmentColumn SortExpression="ImageName" UploadControlType="RadAsyncUpload" DataSourceID="SqlDataSource3" MaxFileSize="20971520" AllowedFileExtensions="jpg,jpeg,png,gif"
    EditFormHeaderTextFormat="Ladda upp bild:" AttachmentDataField="ImageData" ButtonType="ImageButton" ImageUrl="../images/thumb/images.gif"
    AttachmentKeyFields="ID" FileNameTextField="ImageName" DataTextField="ImageName" UniqueName="ImageColumn" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="33px">
</telerik:GridAttachmentColumn>

 

1 Answer, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 14 Apr 2016, 11:25 AM
Hi Kjell,

I would recommend you to examine the following live example and also this help article for more information about configuring GridAttachmentColumn.

Regards,
Kostadin
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Grid
Asked by
Kjell
Top achievements
Rank 1
Iron
Iron
Answers by
Kostadin
Telerik team
Share this question
or