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

MultiColumn Combo Box read only text

2 Answers 206 Views
MultiColumn ComboBox
This is a migrated thread and some comments may be shown as answers.
Richard Slade
Top achievements
Rank 2
Richard Slade asked on 06 Jul 2009, 10:44 AM
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 Answers, 1 is accepted

Sort by
0
Richard Slade
Top achievements
Rank 2
answered on 06 Jul 2009, 12:48 PM
OK - I wasn't paying attention and have answered my own question. Should have changed the style from Drop Down to Drop Down List
0
Nikolay
Telerik team
answered on 08 Jul 2009, 04:07 PM
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.
Tags
MultiColumn ComboBox
Asked by
Richard Slade
Top achievements
Rank 2
Answers by
Richard Slade
Top achievements
Rank 2
Nikolay
Telerik team
Share this question
or