Hi,
I have a radgrid which is bound to a datatable. I want to assign navigation urls to values of columns in that radgrid. Is there anyway to perform this logic at runtime.
I am able to do this at design time like this:
<telerik:GridTemplateColumn HeaderText="Account Name" UniqueName="Account" SortExpression="Account" ItemStyle-Width="100px" >
<ItemTemplate>
<a href="accountview.aspx?id=<%# Eval("AccountID") %>"><%# Eval("AccountName")%></a>
</ItemTemplate>
<ItemStyle Width="100px" Font-Underline="true"></ItemStyle>
</telerik:GridTemplateColumn>
But my issue is, i am generating these columns at runtime. so, I need to assign urls at runtime only. Please let me know any way to do this at runtime.
Thanks,
Mahesh
I have a radgrid which is bound to a datatable. I want to assign navigation urls to values of columns in that radgrid. Is there anyway to perform this logic at runtime.
I am able to do this at design time like this:
<telerik:GridTemplateColumn HeaderText="Account Name" UniqueName="Account" SortExpression="Account" ItemStyle-Width="100px" >
<ItemTemplate>
<a href="accountview.aspx?id=<%# Eval("AccountID") %>"><%# Eval("AccountName")%></a>
</ItemTemplate>
<ItemStyle Width="100px" Font-Underline="true"></ItemStyle>
</telerik:GridTemplateColumn>
But my issue is, i am generating these columns at runtime. so, I need to assign urls at runtime only. Please let me know any way to do this at runtime.
Thanks,
Mahesh