Completed
Last Updated: 13 Nov 2014 10:22 by ADMIN
ADMIN
George
Created on: 10 Nov 2014 14:53
Category: CommandBar
Type: Bug Report
0
FIX. RadCommandBar - clicking on the arrow part of a CommandBarSplitButton fires the Click event for the CommandBarSplitButton also
To reproduce:

Add a RadCommandBar with a row and a strip. Add a CommandBarSplitButton and subscribe to its Click event. You will see that when you click the arrow button the event will be fired. In result you cannot distinguish whether the arrow button is clicked.

Workaround:

private bool arrowButtonClicked;
void ArrowPart_Click(object sender, EventArgs e)
{
    this.arrowButtonClicked = true;

    //... CommandBarSplitButton.ArrowPart logic
}

void button_Click(object sender, EventArgs e)
{
    if (this.arrowButtonClicked)
    {
        this.arrowButtonClicked = false;
        return;
    }

    //...CommandBarSplitButton logic
}
0 comments