Hello all I need to use an image in my gridview as a hyperlink. I read a similar post on here but I could not get it to work for me.
I can get the image in a GridButtonColumn but no hyperlink.. I can get a hyperlink in the GridHyperLinkColumn but no image. Here is my clientside code.
Thanks for the help.
I can get the image in a GridButtonColumn but no hyperlink.. I can get a hyperlink in the GridHyperLinkColumn but no image. Here is my clientside code.
Thanks for the help.
| <Columns> |
| <telerik:GridHyperLinkColumn NavigateUrl="mylink.aspx" |
| ItemStyle-Width="20px" HeaderText="Button Column" Text="Link" > |
| </telerik:GridHyperLinkColumn> |
| <telerik:GridButtonColumn FooterText="ImageButtonColumn<br/>footer" DataTextFormatString="Select {0}" |
| ButtonType="ImageButton" UniqueName="column" HeaderText="Teachers" ItemStyle-Width="20px" |
| ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" CommandName="Select" |
| DataTextField="CustomerID" ImageUrl="App_Themes/NewTheme/images/Teachers.gif"> |
| <HeaderStyle HorizontalAlign="Center"></HeaderStyle> |
| <ItemStyle HorizontalAlign="Center" Width="20px"></ItemStyle> |
| </telerik:GridButtonColumn> |