Mouse Action vs Program Code Action on MCCB

2 posts, 0 answers
  1. Mark
    Mark avatar
    18 posts
    Member since:
    Nov 2011

    Posted 05 Oct 2015 Link to this post

    How can I distinguish a mouse action vs program code action on a multicolumncombobox event like SelectedIndexChanged?
  2. Dimitar
    Admin
    Dimitar avatar
    1404 posts

    Posted 07 Oct 2015 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top