Hi,
We are using RadButton as CheckBoxes and we catch a problem when trying to check the button with the keyboard, when the user checks it with the space key, only the client-side event fires.
We tried first this code:
With that code, everything worked fine, but when one user tried to check it with the keyboard, nothing really happens, we are getting to the server side through RadAjax:
And then, we tried the following approach:
And it worked, the client-side event fires in the two cases (by keyboard space and by mouse click).
We know we can get it to work by activating ajax through javascript, but we think this would be unecessary code.
Is there any bug or approach related to this issue?
Thanks;
We are using RadButton as CheckBoxes and we catch a problem when trying to check the button with the keyboard, when the user checks it with the space key, only the client-side event fires.
We tried first this code:
<
telerik:RadButton
runat
=
"server"
ID
=
"chkIMOPRO"
Text
=
"IMO Product"
ButtonType
=
"ToggleButton"
AutoPostBack
=
"true"
ToggleType
=
"CheckBox"
OnCheckedChanged
=
"chkIMOPRO_CheckedChanged"
>
<
ToggleStates
>
<
telerik:RadButtonToggleState
Selected
=
"true"
/>
<
telerik:RadButtonToggleState
Selected
=
"false"
/>
</
ToggleStates
>
</
telerik:RadButton
>
With that code, everything worked fine, but when one user tried to check it with the keyboard, nothing really happens, we are getting to the server side through RadAjax:
<
telerik:RadAjaxManager
runat
=
"server"
ID
=
"ajaxManager"
OnAjaxRequest
=
"ajaxRequest"
EnableAJAX
=
"true"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"chkIMOPRO"
EventName
=
"chkIMOPRO_CheckedChanged"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"pnlIMOINFO"
LoadingPanelID
=
"loadingPanel"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManager
>
And then, we tried the following approach:
function
chkIMOPRO_CheckedChanged(sender, args) {
alert(
''
);
}
<
telerik:RadButton
runat
=
"server"
ID
=
"chkIMOPRO"
Text
=
"IMO Product"
ButtonType
=
"ToggleButton"
AutoPostBack
=
"true"
ToggleType
=
"CheckBox"
OnCheckedChanged
=
"chkIMOPRO_CheckedChanged"
OnClientCheckedChanged
=
"chkIMOPRO_CheckedChanged"
>
<
ToggleStates
>
<
telerik:RadButtonToggleState
Selected
=
"true"
/>
<
telerik:RadButtonToggleState
Selected
=
"false"
/>
</
ToggleStates
>
</
telerik:RadButton
>
And it worked, the client-side event fires in the two cases (by keyboard space and by mouse click).
We know we can get it to work by activating ajax through javascript, but we think this would be unecessary code.
Is there any bug or approach related to this issue?
Thanks;