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

RadGridview row selection event using keyboard Up/Down arrow

2 Answers 81 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Prassin
Top achievements
Rank 1
Prassin asked on 16 Jul 2012, 05:13 AM
HI all,

 I have a radgrid and binary image. when i select a radgrid row by using Up/Down arrows the image need to be populate with respective of that particular row. which event i can use for achieve my goal.


Regards,

Prassin

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 16 Jul 2012, 09:05 AM
Hello Prassin,

Try the following javascript to acheive your scenario.
JS:
<script type="text/javascript">
function OnKeyPress(sender, args)
 {
  var c = args.get_keyCode();
  if ((c == 40) || (c == 41))
  {
    var master = sender.get_masterTableView().get_selectedItems()[0].get_cell("Binary").className = "classname";
  }
}
</script>
CSS:
.classname
{
   display:block !important;
}

Thanks,
Shinu.
0
Prassin
Top achievements
Rank 1
answered on 16 Jul 2012, 09:15 AM

Hi Shinu,

Thanks for your valuable replay...

is that possible in code behind. then it should be more helpful for me..

Thanks & Regards,

Prassin
Tags
Grid
Asked by
Prassin
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Prassin
Top achievements
Rank 1
Share this question
or