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

.dataformatstring url in VB side not working

1 Answer 40 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Benjamin
Top achievements
Rank 1
Benjamin asked on 06 Feb 2019, 04:59 PM

Hello all. 

This  works when used .aspx side

 <telerik:GridBoundColumn DataField="BookingRef" DataFormatString="<a href='my url link here' target='_blank'>Booking</a>" FilterControlAltText="Filter BookingRef column" HeaderText="BookingRef" SortExpression="BookingRef" UniqueName="BookingRef"> </telerik:GridBoundColumn>

but I'm trying to get it working programmatically but no data will show in the column. It's just blank.

This is in the page_init subroutine.

Dim BoundColumn3 As GridBoundColumn = New GridBoundColumn With {

            .HeaderText = "Setup",
            .DataField = "Tcode",
            .UniqueName = "Tcode",
            .DataFormatString = "<a href='my url link here' target='_blank'>Setup</a>"
        }

Has anyone any tips or advice. I don't really have time to do this as described here.

https://docs.telerik.com/devtools/aspnet-ajax/controls/grid/defining-structure/creating-a-radgrid-programmatically

 

Colin.

 

 

1 Answer, 1 is accepted

Sort by
0
Benjamin
Top achievements
Rank 1
answered on 07 Feb 2019, 03:57 PM
Solution now found. 
Tags
Grid
Asked by
Benjamin
Top achievements
Rank 1
Answers by
Benjamin
Top achievements
Rank 1
Share this question
or