Small problem with rad combo box

7 posts, 1 answers
  1. Paul Stack
    Paul Stack avatar
    8 posts
    Member since:
    Jun 2008

    Posted 08 Oct 2008 Link to this post

    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;
  2. Answer
    Rosi
    Admin
    Rosi avatar
    2527 posts

    Posted 08 Oct 2008 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Paul Stack
    Paul Stack avatar
    8 posts
    Member since:
    Jun 2008

    Posted 08 Oct 2008 Link to this post

    thanks you very much  - this has solved it for me

    paul


  5. Paul Stack
    Paul Stack avatar
    8 posts
    Member since:
    Jun 2008

    Posted 14 Oct 2008 Link to this post

    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


  6. Blaize
    Blaize avatar
    88 posts
    Member since:
    Oct 2006

    Posted 14 Oct 2008 Link to this post

    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
  7. Paul Stack
    Paul Stack avatar
    8 posts
    Member since:
    Jun 2008

    Posted 14 Oct 2008 Link to this post

    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

  8. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 14 Oct 2008 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017