To reproduce:
- Bind RadDataEntry to an object that has DateTime property.
- Change the value using the FreeFormDateTime mask type (enter 101010).
- The value is not changed.
Workaround:
RadDateTimePicker editor;
void radDataEntry1_EditorInitializing(object sender, EditorInitializingEventArgs e)
{
if (e.Property.Name == "obj")
{
editor = new RadDateTimePicker();
editor.Format = DateTimePickerFormat.Short;
editor.DateTimePickerElement.TextBoxElement.MaskType = MaskType.FreeFormDateTime;
RadMaskedEditBoxElement element = editor.DateTimePickerElement.TextBoxElement.TextBoxItem.Parent as RadMaskedEditBoxElement;
FreeFormDateTimeProvider provider = element.Provider as FreeFormDateTimeProvider;
provider.ParsedDateTime += provider_ParsedDateTime;
e.Editor = editor;
}
}
void provider_ParsedDateTime(object sender, EventArgs e)
{
editor.Value = (DateTime)(sender as FreeFormDateTimeProvider).Value;
}
To reproduce:
- Add bindingnavigator and data entry bound to a single binding source.
- Change one of the default editors to drop down list which is also bound to a datasource.
- Synchronize the selected value in the binding source CurrentChanged event.
- Press the move to the last item button.
- You will notice that the value is not displayed properly (displayed is the value member not the display member)
Workaround:
void radBindingNavigator1MoveLastItem_Click(object sender, EventArgs e)
{
bs.MovePrevious();
bs.MoveNext();
}
To reproduce:
- Create a binding source and use the following datatable as its datasource:
static DataTable GetTable()
{
DataTable table = new DataTable();
table.Columns.Add("Str", typeof(string));
table.Columns.Add("Days", typeof(Days));
table.Rows.Add("Value 1", Days.Fri);
table.Rows.Add("Value 2", Days.Mon);
return table;
}
- Bind the data entry to the binding source
- You will notice that the enum value is not displayed.
Workaround:
void radDataEntry1_BindingCreating(object sender, BindingCreatingEventArgs e)
{
if (e.DataMember == "Days")
{
e.PropertyName = "SelectedIndex";
}
}