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

update GridViewDynamicHyperlinkColumn from configuration

1 Answer 65 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Dudy
Top achievements
Rank 1
Dudy asked on 18 Jun 2012, 01:31 PM
Hi 
im using  GridViewDynamicHyperlinkColumn to display record and im using static server name .


 <telerik:GridViewDynamicHyperlinkColumn Header="Customer"  NavigateUrlFormatString="http://<server name>/MNF/main.aspx?etc=2&amp;id={0}&amp;pagetype=entityrecord" NavigateUrlMemberPaths="contactid"  DataFormatString="{}{0}" DataMemberBinding="{Binding fullname}"   TargetName="_blank"    />

how can i add server name from configuration file (or from code behinde)

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 18 Jun 2012, 02:04 PM
Hi,

You can subscribe for the AutoGeneratingColumn event of the RadGridView. It occurs every time a new column is auto generated by the grid view control. That way you can change the properties of the generated GridViewDynamicHyperlinkColumn and set the NavigateUrlFormatString property for it.

I hope this is helpful.

All the best,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
GridView
Asked by
Dudy
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or