This is a migrated thread and some comments may be shown as answers.

Mouse Action vs Program Code Action on MCCB

1 Answer 45 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 2
Mark asked on 05 Oct 2015, 09:08 PM
How can I distinguish a mouse action vs program code action on a multicolumncombobox event like SelectedIndexChanged?

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 07 Oct 2015, 11:09 AM
Hello Mark,

Thank you for writing.

You can use a flag. For example:
bool selectedIncode;
void radMultiColumnComboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
    if (selectedIncode)
    {
        //Do something
    }
}
private void radButton1_Click(object sender, EventArgs e)
{
    selectedIncode = true;
    radMultiColumnComboBox1.SelectedIndex = 3;
    selectedIncode = false;
}

Please let me know if there is something else I can help you with. 
 
Regards,
Dimitar
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Mark
Top achievements
Rank 2
Answers by
Dimitar
Telerik team
Share this question
or