Disabling text input in combobox

2 posts, 0 answers
  1. Miguel
    Miguel avatar
    1 posts
    Member since:
    Jul 2011

    Posted 21 Jul 2011 Link to this post

    Hi fellas
    I'm trying to use some nested combo boxes and want to disable the ability of writing text in the combo box 'cause if invalid text is written it will break my app.  Now I know validation might work but my clients desire is to completely disable this behaviour (I prefer it this way as well).  I've been looking at the AllowCustomText property but changing its value has done nothing, dunno why... any help will be greatly appreciated, thanks :)
  2. Kalina
    Admin
    Kalina avatar
    918 posts

    Posted 21 Jul 2011 Link to this post

    Hello Miguel,

    You can try to forbid user typing in RadComboBox input by handling the OnClientLoad event in this way:
    <telerik:RadComboBox ID="RadComboBox1" runat="server"
        OnClientLoad="OnClientLoadHandler" . . . >

    function OnClientLoadHandler(sender) {
        sender.get_inputDomElement().readOnly = "readonly";
    }


    Regards,
    Kalina
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Back to Top