Completed
Last Updated: 15 Aug 2017 10:20 by ADMIN
ADMIN
Dess | Tech Support Engineer, Sr.
Created on: 28 Feb 2017 08:39
Category: BindingNavigator
Type: Bug Report
0
FIX. RadBindingNavigator - next/previous buttons stops working after resetting the BindingSource several times
To reproduce: please refer to the attached gif file and sample project.

Workaround:

public class CustomNavigator : RadBindingNavigator
{
    public override string ThemeClassName
    {
        get
        {
            return typeof(RadBindingNavigator).FullName;
        }
    }
    protected override RadBindingNavigatorElement CreateNavigatorElement()
    {
        return new CustomNavigatorElement();
    }
}

public class CustomNavigatorElement : RadBindingNavigatorElement
{
    public void Attach()
    {
        this.AttachEvents();
    }
}

private void radButton2_Click(object sender, EventArgs e)
{
    SetNavigator(list1, this.radGridView1);
    this.radGridView1.DataSource = list1;
    SetNavigator(list2, this.radGridView2);
    ((CustomNavigatorElement)this.radBindingNavigator1.BindingNavigatorElement).Attach();
}

(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
0 comments