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

Show all items when selected item's text is deleted

4 Answers 46 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Vasssek
Top achievements
Rank 1
Vasssek asked on 06 Mar 2013, 11:46 AM
Hello Telerik,

In new version Q1 2013 I have issue how to show all items (records) when user typed to combobox some characters, choose filtered item and then delete selected item's text. In previous versions Q2 2013, this worked without problems.

You can find the same behaviour in demo example:
http://demos.telerik.com/aspnet-ajax/combobox/examples/overview/defaultcs.aspx

Steps to reproduce my problem.
1. Type to first combobox text anis
2. Records are filtered and just one record  has left with text Aniseed Syrup
3. Clik on selected item or press Enter key. Now, combobox has selected item
4. Click on same combobox stelected item and press Delete key

After set 4, normally all records had been shown, but in Q1 2013 nothing is shown. Is is bug or do I make some mistake ?

This problem is appeared only in IE browsers (v.8,v.9).

Please help me to solve this issue.

Best regrads

Vasssek 

4 Answers, 1 is accepted

Sort by
0
Max Petersen
Top achievements
Rank 1
answered on 07 Mar 2013, 09:14 AM
We are having the same problem.
A few observations:

Using the 'Backspace' key triggers the normal behavior.
We only experience this problem in Internet Explorer.

 Firefox and Safari works fine with the del key.

0
Vasssek
Top achievements
Rank 1
answered on 10 Mar 2013, 11:03 AM
Hello,

today I have found the way, how it could work as expected even in IE browser.

In radcombo asp declaration add event:
OnClientKeyPressing="artikel_OnClientKeyPressing"
 
and the javascript code is:
function artikel_OnClientKeyPressing(sender, eventArgs) {
var keyCode = eventArgs.get_domEvent().keyCode;
if (keyCode == 127) // This means DEL key
{
sender.clearSelection();
sender.set_value("");
sender.set_text("");
sender._applyEmptyMessage();
//__doPostBack(sender.get_id(), false);
sender.requestItems("", true);
}
}

When user pressed a DEL key, it initiates a load on demand callback request with the specified text, causing the ItemsRequested server event to fire...

To Telerik: please fix this bug asap.

Have a nice day

Vasssek

0
Accepted
Nencho
Telerik team
answered on 11 Mar 2013, 09:15 AM
Hello,

The described problematic behavior is indeed a bug and it is already logged.

Thank you for your involvement.   

Greetings,
Nencho
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.
0
Vasssek
Top achievements
Rank 1
answered on 03 Apr 2013, 08:11 PM
Hello,

This problem seems to be solved in the last build 2013.1.326.40 :-))

Vasssek
Tags
ComboBox
Asked by
Vasssek
Top achievements
Rank 1
Answers by
Max Petersen
Top achievements
Rank 1
Vasssek
Top achievements
Rank 1
Nencho
Telerik team
Share this question
or