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

RadComboBox SelectText problem.

3 Answers 138 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
shunman
Top achievements
Rank 1
shunman asked on 29 Jan 2013, 06:59 AM
Hello Telerik.

I have a problem RadCoboBox's "SelectText" function.

It can select part of text through selected length.

I tried use this function but it doesn't work.

So i have tried many test, finally getting result.

If i want to use SeelectText function , i should to set some properpties.

EnableTextSelection="true" EnableLoadOnDemand="true".

that properies are set true, selectText was worked.

Is it bug or planned scenario?

I shared download sample code, please test this.

http://www.mediafire.com/?njbisuahv0mnben


3 Answers, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 31 Jan 2013, 02:00 PM
Hello Shunman,

Instead of enabling the LoadOnDemand feature, you could simply set the AllowCustomText property of the RadComboBox to true, in order to use the SelectText function. Therefor, the function could be used in scenarios where the RadComboBox allows the user to type in the input of the control.

Kind regards,
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
shunman
Top achievements
Rank 1
answered on 01 Feb 2013, 04:57 AM
Hello nencho.
Thanks you for reply.

What is purpose the EnableTextSelection property exactly?
I think EnableTextSelection value is false, RadCombobox should not select text.

Your EnableTextSelection property explain is "Gets or Sets a value indicating whether the text of comobox should be selected"

I set EnableTextSelection = false, nevertheless text was still selected.
so I found avoid this problem, tried serveral test.  and I figured out that if AllowCustomText = true then radcombobox is not select text.

EnableTextSelection property doesn't work alone?

0
Cat Cheshire
Top achievements
Rank 1
answered on 05 Feb 2013, 01:27 PM
I suppose that the EnableTextSelection property indicates whether the text in combo input should be selected if AllowCustomText is set to "true" (the combo is not read-only) and the user clicks with the mouse in it.
Tags
ComboBox
Asked by
shunman
Top achievements
Rank 1
Answers by
Nencho
Telerik team
shunman
Top achievements
Rank 1
Cat Cheshire
Top achievements
Rank 1
Share this question
or