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

DataFormComboBoxField allways Enabled

1 Answer 64 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Andreas Decke
Top achievements
Rank 1
Andreas Decke asked on 22 Feb 2012, 08:49 AM
Hello,

my code in AutoGeneratingField Event of DataForm
// Routertype
if (e.PropertyName == "RouterType")
{
  DataFormDataField old = e.DataField;
  e.DataField = new DataFormComboBoxField
  {
    ItemsSource = new RouterTypeList(),
    DisplayMemberPath = "Name",
    SelectedValuePath = "Value",
    DataMemberBinding = old.DataMemberBinding,
    Label = old.Label,
    Mode = old.Mode,
    Description = old.Description
  };
}

the DataFormComboBoxField in the DataForm is allways enabled (show the Image).
I'd like the combo box behaves as textbox.

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 22 Feb 2012, 01:54 PM
Hi Richard,

Actually, this is the edit state of DataFormComboBoxFiled - its editing element - RadComboBox - is visualized. So, what you can try is setting its IsEditable property and will look like the one in this demo. Will that correspond to your needs ? 

Kind regards,
Maya
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
DataForm
Asked by
Andreas Decke
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or