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

RadCombobox Auto Complete is not working

10 Answers 375 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Rajiv Prashant
Top achievements
Rank 1
Rajiv Prashant asked on 21 Oct 2010, 08:09 AM
Hi,

    I am using Rad Combobox . on Clicking on the Radcombox Autocomplete results are displaying and tab navigation autocomplete results are not displaying.

following is the code :

<

 

span class="">

 

 

<telerik:RadComboBox ID="ddlBusinessInd" runat="server" Width="110px" AutoPostBack="True"

 

 

OnSelectedIndexChanged="ddlBusinessInd_SelectedIndexChanged1" Filter="Contains" DropDownWidth ="200px"

 

 

MarkFirstMatch="True" meta:resourcekey="ddlBusinessIndResource1">

 

 

</telerik:RadComboBox>

 

 

</span>

 

 

<telerik:RadComboBox ID="ddlBusCategory" runat="server" Width="110px" Filter="Contains" NoWrap ="true" DropDownWidth ="200px"

 

 

MarkFirstMatch="True" meta:resourcekey="ddlBusCategoryResource1">

 

 

</telerik:RadComboBox>

 

 

<span class="fsMargin">

 

 

<telerik:RadComboBox ID="ddlCountry" runat="server" Width="110px" Filter="Contains" NoWrap ="true" DropDownWidth ="200px"

 

 

MarkFirstMatch="True" meta:resourcekey="ddlCountryResource1">

 

 

</telerik:RadComboBox>

 

 

</span>


And in the above Code  ddlBusinessInd And ddlBusCategory and Depends each other :

When i select Industries from the Combobox i am getting Followin Error : 
    htmlfile: Could not complete the operation due to error 800a025e.

Please Provide the Solution.

 

10 Answers, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 25 Oct 2010, 06:11 PM
Hello Rajiv Prashant,

I was unable to reproduce this error in our demos and in this one specifically.

Could you please clarify what do you mean by "tab navigation autocomplete results are not displaying"? Which version of the Telerik.Web.UI assembly are you using?

Sincerely yours,
Simon
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Rajiv Prashant
Top achievements
Rank 1
answered on 27 Oct 2010, 06:28 AM
Hi,

 I have 3 Rad Combo Boxes in my Page . For all 3 Rad Combo Boxes Fileter Option is Set "Contains" . When i Click Individual Combox Boxes and Typing Character then Matched Characters are highlighting in Drop down  .Refer Image 01

But  on Tab Navigation matched Characters are Not Displaying  . Refer Image 02.

We are Using  Verion :  2010.1.519.35

Thanks .
0
Sathya
Top achievements
Rank 1
answered on 28 Oct 2010, 09:58 AM
any updates on this ? how did u fix it ?
0
Simon
Telerik team
answered on 02 Nov 2010, 02:59 PM
Hello Rajiv,

This is the normal behavior - an Item is not automatically selected if you tab out of the input during filtering. Can you please explain what you expect to happen when you press Tab?

Regards,
Simon
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Rajiv Prashant
Top achievements
Rank 1
answered on 04 Nov 2010, 11:24 AM
Hi,

    Thanks For Replying.

On Tab Navigation also i need auto complete  text if user type characters.
0
Simon
Telerik team
answered on 04 Nov 2010, 02:15 PM
Hi Rajiv Prashant,

You can set the MarkFirstMatch property to true in this case - it will give you the required functionality.

I hope this helps.

All the best,
Simon
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Rajiv Prashant
Top achievements
Rank 1
answered on 08 Nov 2010, 06:38 AM
Hi,

I used that property  please check below code.

<

 

span class="">

 

 

<telerik:RadComboBox ID="ddlBusinessInd" runat="server" Width="110px" AutoPostBack="True"

 

 

OnSelectedIndexChanged="ddlBusinessInd_SelectedIndexChanged1" Filter="Contains"

 

 

MarkFirstMatch="true" >

 

 

</telerik:RadComboBox>

 

 

</span>

 

 

<telerik:RadComboBox ID="ddlBusCategory" runat="server" Width="110px" Filter="Contains"

 

 

MarkFirstMatch="true" ></telerik:RadComboBox>

 

 

<span class="fsMargin">

 

 

<telerik:RadComboBox ID="ddlCountry" runat="server" Width="110px" Filter="Contains"

 

 

MarkFirstMatch="true" >

 

 

</telerik:RadComboBox>

 

 

</span>

 


0
Simon
Telerik team
answered on 08 Nov 2010, 05:16 PM
Hello Rajiv Prashant,

It seems that the behavior of RadComboBox is incorrect in this case - it should select the highlighted Item, not the first matching with a 'starts with' filter.

You can work around this by handling the client-side KeyPressing event in this way:
function onKeyPressing(sender, eventArgs) {
    var e = eventArgs.get_domEvent();
    var keyCode = e.keyCode || e.which;
 
    if (keyCode == 9) {
        var item = sender.get_highlightedItem();
        if (item) setTimeout(function () { item.select(); });
    }
}

I updated your Telerik points for finding and reporting this. We will fix it in the next versions of RCB.

All the best,
Simon
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Bieters Bieters
Top achievements
Rank 1
answered on 10 Nov 2010, 09:07 AM
Hello, this javascript code works well but it disables the behaviour of the tab itself.
The control can't lose focus after this script with the tab.
Any fix for this?
Thanks.
0
Simon
Telerik team
answered on 10 Nov 2010, 06:03 PM
Hello Bieters Bieters,

In this case you will need to manually focus the next control in the tab order manually. You can do this in the function that selects the Item.

I hope this helps.

Kind regards,
Simon
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
ComboBox
Asked by
Rajiv Prashant
Top achievements
Rank 1
Answers by
Simon
Telerik team
Rajiv Prashant
Top achievements
Rank 1
Sathya
Top achievements
Rank 1
Bieters Bieters
Top achievements
Rank 1
Share this question
or