GridAttachmentColumn

2 posts, 0 answers
  1. Kjell
    Kjell avatar
    203 posts
    Member since:
    May 2011

    Posted 11 Apr 2016 Link to this post

    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>

     

  2. Kostadin
    Admin
    Kostadin avatar
    1733 posts

    Posted 14 Apr 2016 Link to this post

    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.
Back to Top