4 Answers, 1 is accepted
0

Shinu
Top achievements
Rank 2
answered on 24 Apr 2012, 03:38 PM
Hi Paul,
Try setting AllowKeyboardNavigation property to true to select row on keyboard arrow up and down.
ASPX:
JS:
Please take a look into this demo for more information.
Thanks,
Shinu.
Try setting AllowKeyboardNavigation property to true to select row on keyboard arrow up and down.
ASPX:
<
ClientSettings
AllowKeyboardNavigation
=
"true"
>
<
ClientEvents
OnRowSelected
=
"OnRowSelected"
/>
<
KeyboardNavigationSettings
EnableKeyboardShortcuts
=
"true"
/>
<
Selecting
AllowRowSelect
=
"true"
/>
</
ClientSettings
>
JS:
<script type=
"text/javascript"
>
function
OnRowSelected(sender, args)
{
alert(
"Row selected"
);
}
</script>
Please take a look into this demo for more information.
Thanks,
Shinu.
0

Paul
Top achievements
Rank 1
answered on 24 Apr 2012, 08:05 PM
Is there anyway to trigger the code behind radgrid_SelectedIndexChanged method?
0

Shinu
Top achievements
Rank 2
answered on 25 Apr 2012, 06:32 AM
Hello Paul,
One suggestion is you can ajaxify the grid and explicitly raise a postback. Here is the sample code.
aspx:
JS:
C#:
Thanks,
Shinu.
One suggestion is you can ajaxify the grid and explicitly raise a postback. Here is the sample code.
aspx:
<
telerik:RadAjaxManager
ID
=
"ajax"
runat
=
"server"
OnAjaxRequest
=
"ajax_AjaxRequest"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"grid1"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"grid1"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManager
>
function
OnRowSelected(sender, args)
{
var
ajaxManager = $find(
"<%= ajax.ClientID %>"
).ajaxRequest(
"Selected"
);
}
protected
void
ajax_AjaxRequest(
object
sender, AjaxRequestEventArgs e)
{
if
(e.Argument ==
"Selected"
)
{
}
}
Thanks,
Shinu.
0

Paul
Top achievements
Rank 1
answered on 25 Apr 2012, 03:27 PM
Shinu,
Thats what I was missing. Thank you very much.
Paul
Thats what I was missing. Thank you very much.
Paul