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

related comboboxes causing page back

1 Answer 31 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Tim
Top achievements
Rank 1
Tim asked on 25 Jan 2012, 10:52 PM
I've come across a problem with the related comboboxes. If you place your cursor in the first combobox and click backspace the browser will take you back a page. I've testing this with the demo app, http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/multiplecomboboxes/defaultcs.aspx on the telerik site and on my own apps. Happens with Chrome and IE 9, haven't tried it on anyother browsers.

Is this a bug or is there a setting I can use to prevent this behavior.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Dimitar Terziev
Telerik team
answered on 30 Jan 2012, 01:17 PM
Hi Tim,

What you experience is a browser specific behavior. You could try to prevent the default behavior when the backspace button is clicked using the following script:
$telerik.$('.rcbInput').keydown(function(event) {
  if (event.keyCode == '8') {  
     event.preventDefault();
   
});

All the best,
Dimitar Terziev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
ComboBox
Asked by
Tim
Top achievements
Rank 1
Answers by
Dimitar Terziev
Telerik team
Share this question
or