Declined
Last Updated: 05 Jun 2019 12:28 by ADMIN
ADMIN
Dimitar
Created on: 11 Apr 2014 12:28
Category:
Type: Bug Report
0
FIX. RadDataEntry - when the control is bound and RadDropDowList is used as custom editor the value is not properly synchronized.
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();
}
1 comment
ADMIN
Dimitar
Posted on: 05 Jun 2019 12:28
Hello,

The custom editor, in this case, RadDropDownList will be properly updated if the property binding is updated in the RadDataEntry.BindingCreating event:
private void radDataEntry1_BindingCreating(object sender, Telerik.WinControls.UI.BindingCreatingEventArgs e)
{
    if (e.DataMember == "SupplierID")
    {
        e.PropertyName = "SelectedValue";
    }
}

The following documentation article demonstrates how the custom editor can be implemented: https://docs.telerik.com/devtools/winforms/controls/dataentry/how-to/change-the-editor-to-a-bound-raddropdownlist

The attached project can be used as an example following the approach in the article and integrating it with a RadBindingNavigator.

Regards,
Dimitar