RadComboBox SelectText problem.

4 posts, 0 answers
  1. shunman
    shunman avatar
    77 posts
    Member since:
    Jul 2011

    Posted 29 Jan 2013 Link to this post

    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


  2. Nencho
    Admin
    Nencho avatar
    1871 posts

    Posted 31 Jan 2013 Link to this post

    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.
  3. shunman
    shunman avatar
    77 posts
    Member since:
    Jul 2011

    Posted 31 Jan 2013 Link to this post

    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?

  4. Cat Cheshire
    Cat Cheshire avatar
    128 posts
    Member since:
    Jun 2010

    Posted 05 Feb 2013 Link to this post

    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.
Back to Top