Hello,
my code in AutoGeneratingField:
the RDF is AutoEdit = false, normally is the Control (Textbox, ComboBox) IsReadOnly = true.
The upDown is allways enabled.
Please, how can i do for the upDown to IsReadOnly = true in Mode= RadDataFormMode.ReadOnly
and IsReadOnly=false in Mode = RadDataFormMode.Edit
thanks
my code in AutoGeneratingField:
if
(e.PropertyName.Equals(
"RssPolitikCount"
))
{
e.DataField.FontWeight = FontWeights.Bold;
RadNumericUpDown upDown =
new
RadNumericUpDown();
upDown.NumberDecimalDigits = 0;
upDown.Width = 60;
upDown.HorizontalAlignment = HorizontalAlignment.Left;
Binding b =
new
Binding(
"RssPolitikCount"
);
b.Mode = BindingMode.TwoWay;
upDown.SetBinding(RadRangeBase.ValueProperty, b);
e.DataField.Content = upDown;
}
the RDF is AutoEdit = false, normally is the Control (Textbox, ComboBox) IsReadOnly = true.
The upDown is allways enabled.
Please, how can i do for the upDown to IsReadOnly = true in Mode= RadDataFormMode.ReadOnly
and IsReadOnly=false in Mode = RadDataFormMode.Edit
thanks