Or any other approach that make image clickable and links to that row details?
3 Answers, 1 is accepted
0
Yavor
Telerik team
answered on 08 Jun 2010, 07:38 AM
Hi Rychu,
Although this functionality is not available, you can assign an onclick client side handler for the image, after accessing the relevant cell, which hosts the image:
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
This seems to work when clicking anywhere on the RadGrid row -except when clicking directly onthe image itself.
In that case, nothing happens (i.e. no client-side event is fired).
Any idea why that is and how I can make clicking on the image also fire the (same) event?
Thx!
PS - sure would be nice if GridBinaryImageColumn had a hyperlink setting.
Paul
<script type="text/javascript">
function RowSelected(sender, eventArgs)
{
var grid = sender;
var MasterTable = grid.get_masterTableView();
var row = MasterTable.get_dataItems()[eventArgs.get_itemIndexHierarchical()];
var cell = MasterTable.getCellByColumnUniqueName(row, "MLSNum"); alert('hyperlink = ' + cell.lastChild); // displays: hyperlink = http://domain.com
}
</script>