MultiColumn Combo Box read only text

3 posts, 0 answers
  1. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 06 Jul 2009 Link to this post

    Hello,
    I am using the latest version of the controls and I'd like to be able to set the text of a MultiColumn Combo Box to read only.

    'm using the combo for a multi column selection so the users can see more information on a row, but the text should be read only. In your demo also it is possible to freely type into the text area.. I've had to get round it like this.. which is hardly elegant..

     

    Private Sub ComboVatRates_TextChanged(ByVal sender As System.Object, _

     

     

    ByVal e As System.EventArgs) Handles ComboVatRates.TextChanged

     

     

    Dim rowInfo As GridViewRowInfo = DirectCast(Me.ComboVatRates.EditorControl, RadGridView).SelectedRows(0)

     

     

    If Not rowInfo Is Nothing Then

     

     

    Me.ComboVatRates.Text = rowInfo.Cells(1).Value.ToString()

     

     

    End If

     

     

    End Sub

     

  2. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 06 Jul 2009 Link to this post

    OK - I wasn't paying attention and have answered my own question. Should have changed the style from Drop Down to Drop Down List
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 08 Jul 2009 Link to this post

    Hi Richard Slade,

    Indeed, if you want to prevent the users from typing into the textbox part of RadMultiColumnComboBox, you should set the DropDownStyle to DropDownList.

    If you have additional questions, feel free to contact us.

    Regards,
    Nikolay
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top