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>
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>
6 Answers, 1 is accepted
0
Accepted
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.
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
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
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
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
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
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.
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.