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

[Solved] Cancelling ClientKeyPressing Event

1 Answer 118 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Paul Haines
Top achievements
Rank 1
Paul Haines asked on 11 Nov 2009, 12:05 PM
[This is after upgrading from RadControls AJAX Q3 2008 to Q1 2009, where all of this was working correctly before].

In our website, we have a page that has a RadGrid with a template column, which contains a RadComboBox. A requirement is that when the user presses [enter] in a combobox, it pre-selects a default item and moves focus onto the equivalent combobox in the next row.
This is all done on the RadComboBoxes' "ClientKeyPressing" client-side event in javascript.

All of this is working OK, up until we try to set focus onto the next RadComboBox. I'm currently using the control's "selectText()" function, (no arguments), as that's what we used before. However, it doesn't move the focus in I.E. at all, but sort of does in Firefox and Safari, (the three browsers we're supporting), in that the next RadComboBox is highlighted but it won't accept inputs.
What javascript do we need to achieve this?

The other thing that's going wrong is, based on another requirement, we have a DefaultButton set for the RadGrid, (as it's contained in a standard Panel), but we can't find a way to prevent this button from being called any more. It isn't raised in I.E., but both Firefox and Safari still cause it to be fired.
We were simply returning "false" from the event handler, so what should we change it to now?

Thanks for any help
Paul

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 16 Nov 2009, 10:06 AM
Hello Paul,

Could you please create a very simple page demonstrating this issue and send it to us? You should open a support ticket in order to be able to attach files. Thanks

Greetings,
Yana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
ComboBox
Asked by
Paul Haines
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or