Dear Telerik Team,
I am actually migrating the asp:button to telerik:radbutton and some logic doesn't work as expected.
For example, It was easy to use things like that to click a button using jQuery :
How may I do the same logic using RadButton ?
Cheers,
S.F.
I am actually migrating the asp:button to telerik:radbutton and some logic doesn't work as expected.
For example, It was easy to use things like that to click a button using jQuery :
function
keyboardActions(event) {
if
(event.keyCode == 13) {
eval($(
"#<%=btnSearch.ClientID %>"
).trigger(
'click'
));
// Doesn't work with RadButton Q3.2010
return
false
;
}
// other keypressed other actions ?
}
// If the client press ENTER, the Search button is clicked.
$(document).ready(
function
() {
if
($.browser.mozilla) {
$(
"#<%=txtName.ClientID %>"
).keypress(keyboardActions);
$(
"#<%=txtCode.ClientID %>"
).keypress(keyboardActions);
}
else
{
$(
"#<%=txtName.ClientID %>"
).keydown(keyboardActions);
$(
"#<%=txtCode.ClientID %>"
).keydown(keyboardActions);
}
});
How may I do the same logic using RadButton ?
Cheers,
S.F.