Events Not Firing

3 posts, 1 answers
  1. Todd
    Todd avatar
    1 posts
    Member since:
    Jul 2016

    Posted 05 May 2017 Link to this post

    I cannot get any Events to Fire for radGridView (C#).

    Examples:

    private void radGridView1_Click(object sender, EventArgs e)
    {
    MessageBox.Show("Event Fired");
    }
    void radGridView1_CellValueChanged(object sender, GridViewCellEventArgs e)
    {
    MessageBox.Show("Event Fired");
    }

    Is there a missing reference or something?

  2. Answer
    erwin
    erwin avatar
    399 posts
    Member since:
    Dec 2006

    Posted 06 May 2017 in reply to Todd Link to this post

    Most likely the visual Studio designer has messed up with your event handlers.

    Using 'Find all References' in Visual Studio, check if your handlers are still connected.

    The search should point you to the code in the .Desinger File (or maybe your own code), where you should find something like:

    radGridView1.CellValueChanged += new Telerik.WinControls.UI.GridViewCellEventHandler(this.radGridView1_CellValueChanged);

        

     

     

     

     

     

  3. Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    3576 posts

    Posted 08 May 2017 Link to this post

    Hello Todd,

    Thank you for contacting Telerik Support.

    Following the provided information, I was unable to reproduce the issue you are facing. Please refer to the attached gif file illustrating the behavior on my end with the specified version. I have attached my sample project. Could you please specify the exact steps how to reproduce the problem or get back to me with a sample project in the support thread that you have opened so I can investigate the precise case? Thank you in advance. 

    It is recommended to try Erwin's suggestion. Thus, you will find out whether you actually have event subscriptions.

    I am looking forward to your reply.

    Regards,
    Dess
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top