I have a feeling this should be simple but I can't for the life of me get my head around it.
I want a clientside doubleclick event to do a simple javascript window.open() with the URL derived from data in the grid row clicked.
My first javascript function looked like this:
Simple enough. The calculation of the URL is quite intensive so I don't want to do it more than I have to, so what I want to do is loop through the visible rows
and generate the code I need.
Any help would be appreciated
I want a clientside doubleclick event to do a simple javascript window.open() with the URL derived from data in the grid row clicked.
My first javascript function looked like this:
function RowDblClick(sender, eventArgs) { |
switch (eventArgs.get_itemIndexHierarchical()) { |
case '0': |
window.open('urlhere','','') |
case '1': |
....etc |
} |
} |
Simple enough. The calculation of the URL is quite intensive so I don't want to do it more than I have to, so what I want to do is loop through the visible rows
and generate the code I need.
Any help would be appreciated