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

[Solved] Creating a hyperlink by using a "Find File" button or link...

1 Answer 176 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 25 Mar 2013, 07:52 PM
I have a simple template column with a hyperlink in it:

<telerik:GridTemplateColumn FilterControlAltText="Filter AMRLink column" HeaderText="AMR Link" UniqueName="AMRLink" FilterControlWidth="92%">
    <HeaderStyle Width="420px" />
        <ItemTemplate>
            <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# Eval("AMRLink", "\\localserver.com\Department_Shares\Manufacturing\Engineering\GSIS AMR-MR\{0}") %>'
                                    Text='<%# Eval("AMRLink", "{0}") %>' Target="_blank"></asp:HyperLink>
        </ItemTemplate>
        <EditItemTemplate>
            <asp:TextBox ID="txtAMRLink" runat="server" Text='<%# Bind("AMRLink") %>' Width="98%" />
        </EditItemTemplate>
</telerik:GridTemplateColumn>

It works great - it links to the correct file, and I can edit/insert just fine.

The thing is, when the user inserts/edits, they have to type in a couple more folders depths plus the file name
(e.g., "Shift1\Testers\TestReport_03_25_2013.pdf").  The directory where the file may be located is not consistent, hence their need to type in the directory names.

So, is it possible to have them click on a button, navigate around to the correct file, select it, and have that file path saved as the new hyperlink?

Thanks ahead of time...

1 Answer, 1 is accepted

Sort by
0
Marin
Telerik team
answered on 28 Mar 2013, 01:08 PM
Hi,

 The GridAttachment column provides similar functionality. You can check it in the following demo:
http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/gridattachmentcolumn/defaultcs.aspx

Greetings,
Marin
the Telerik team
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 RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Chris
Top achievements
Rank 1
Answers by
Marin
Telerik team
Share this question
or