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

Small problem with rad combo box

6 Answers 96 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Paul Stack
Top achievements
Rank 1
Paul Stack asked on 08 Oct 2008, 12:02 PM
Hi

i am using a rad combo box with the load on demand addition to it. when i type come custom text in the combo box and then click away from the box it will not let me change the text in the combo box when i click back in it again

instead it highlights the entire text and will only let me type an entire next set of text.

is there anyway that i can select an individual part of the text so that it can be changed?

Here is the combo box code that i am using

<telerik:RadComboBox ID="rcSearchTextEntry" CssClass="textbox" runat="server" Width="450px" ShowToggleImage="false"
                MarkFirstMatch="false" AllowCustomText="true" Height="200px" ShowDropDownOnTextboxClick="false"
                OnItemsRequested="rcSearchTextEntry_ItemsRequested" EnableLoadOnDemand="true"
                EnableVirtualScrolling="true" ShowMoreResultsBox="true">
            </telerik:RadComboBox>&nbsp;

6 Answers, 1 is accepted

Sort by
0
Accepted
Rosi
Telerik team
answered on 08 Oct 2008, 02:39 PM
Hello Paul Stack,

I suggest you set the EnableTextSelection property of RadComboBox to false.

Regards,
Rosi
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Paul Stack
Top achievements
Rank 1
answered on 08 Oct 2008, 02:47 PM
thanks you very much  - this has solved it for me

paul


0
Paul Stack
Top achievements
Rank 1
answered on 14 Oct 2008, 10:33 AM
Hi there

i have encountered 1 further small problem with the rad combo box above

when i set the default button behaviour to be a submit button i have on the page - this will only work when i am not in the rad combo box. i am using the box for a search on a site and when i type in a search term i need to click outside the combo box in order for the default button to be called.

is this normal behavious? if so is there any way around this

thanks

paul


0
Blaize
Top achievements
Rank 1
answered on 14 Oct 2008, 12:56 PM
Hey Paul,
I use the keypressing property-event to handle the keypress. My event handler checks the event argument keyCode and calls the click method of the button if ENTER was pressed.
It should work for you too.

Cheers,
Blaize
0
Paul Stack
Top achievements
Rank 1
answered on 14 Oct 2008, 03:32 PM
hi blaize

thanks for the reply. i think i am going to need a little more help with this though as there is no key pressing event associated with the rad combo box

by any chance do you have sample code for this?

thanks

paul

0
Simon
Telerik team
answered on 14 Oct 2008, 05:32 PM
Hi Paul Stack,

Here you can find sample code, please have a look at it (the keyCode for ENTER is 13).

Best wishes,
Simon
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
ComboBox
Asked by
Paul Stack
Top achievements
Rank 1
Answers by
Rosi
Telerik team
Paul Stack
Top achievements
Rank 1
Blaize
Top achievements
Rank 1
Simon
Telerik team
Share this question
or