I am new to Telerik - and fairly new to ASP.NET - so please bare with me...
I have one master grid - and one detail grid. In the detail grid I have a hyperlink (Link Button).
This hyperlink is meant to open an Image (PDF) in my SQL database.
I figured I would do this by sending the value of the clicked item (a GUID) to the code behind - so I can then search for the image and open it up. Whatever I do, I can't figure out how to pass the GUID that was selected to the code behind.
I was able to get the value of every GUID in the column - but not the one I selected. Could anyone steer me on the right path? I have spent days trying to do this - I would think that this should be fairly easy...
HTML
VB.NET
I have one master grid - and one detail grid. In the detail grid I have a hyperlink (Link Button).
This hyperlink is meant to open an Image (PDF) in my SQL database.
I figured I would do this by sending the value of the clicked item (a GUID) to the code behind - so I can then search for the image and open it up. Whatever I do, I can't figure out how to pass the GUID that was selected to the code behind.
I was able to get the value of every GUID in the column - but not the one I selected. Could anyone steer me on the right path? I have spent days trying to do this - I would think that this should be fairly easy...
HTML
<asp:LinkButton runat="server" CausesValidation="false" CommandName="Select" Text="View"></asp:LinkButton>VB.NET
Protected Sub RadGrid2_SelectedIndexChanged(ByVal sender As Object, ByVal e As GridItemEventArgs) Handles RadGrid2.SelectedIndexChanged Dim gridDataItem As GridDataItem = TryCast(e.Item, GridDataItem) If e.Item.OwnerTableView.GetColumnSafe("GUID") IsNot Nothing Then Dim cell As TableCell = TryCast(gridDataItem("GUID"), TableCell) End IfEnd Sub