c# - Disable selection from Radcombobox list of values -
i want list items in radcombobox (values binded dataset) user should not allowed select value radcombobox.
user should able see items selecting item should disabled.
i appreciate help. in advance.
you can in aspx part of page. right in way.
<telerik:radcombobox x:name="radcombobox" width="200"> <telerik:radcomboboxitem content="alapattah" isenabled="false"/> <telerik:radcomboboxitem content="brickell avenue" /> <telerik:radcomboboxitem content="downtown miami" isenabled="false"/> </telerik:radcombobox>
but if binding programatically, can this:
foreach(radcomboboxitem item in radcombobox.items) { item.enabled = false; }
then in both cases user can view, can't select disabled items.
more info here: http://docs.telerik.com/devtools/wpf/controls/radcombobox/howto/enable-disable-radcombobox-items
Comments
Post a Comment