NullReferenceException in DetailListViewElement.ProcessMouseUp event

3 posts, 0 answers
  1. Daniel
    Daniel avatar
    10 posts
    Member since:
    Sep 2016

    Posted 31 Jan 2018 Link to this post

    Hi,

    since some days, I got the title's related null reference exception when I click on item on RadListView control in DetailView mode. 

    Have you any idea? If i use the same control with the same data inside it but set mode to ListView al works without any problem (but I can't do this, due to a complex series of routine formatting details view elements according to the type and the structure of the data inside of it). The exception was thrown inside Telerik.WinControl.UI, on the event indicated. I cannot intercept any event before the crash, so the application quit unexpectedly.

     

    Routing causing the exception is:

     

    private void lvRecords_CurrentItemChanged(object sender, ListViewItemEventArgs e)
            {
                if (e.Item != null)            
                    CaricaDettaglio(e.Item.DataBoundItem as BaseEntity<int>);
                else
                {
                    spDetails.Collapsed = true;
                    spGestioneCustom.Collapsed = true;
                }
            }

    where, by the call CaricaDettaglio, I made some changes on the form, loading some data into other controls based on the e.Item.DataboundItem, an entity of my application. I've also noticed that if I double click on form bar to resize it, if the mouse passes through the control during the form resize, the same event was fired, with the same result, without any further click on it, and this is really unattended.

     

    DLL version is 2016.2.608.40 but I don't want updgrade project to latest Telerik Library if not necessary.

     

    Have you any idea or suggestion?

     

    Thanks in advance.

  2. Daniel
    Daniel avatar
    10 posts
    Member since:
    Sep 2016

    Posted 31 Jan 2018 Link to this post

    Ok, after some hours of investigation, the problem is control.BeginUpdate / .EndUpdate placed into a routine dedicated to the bestfist of the radlistview. For some reason, in this particular scenario, this causes the error indicated if called here...

    I've no time to investigate further to understand the real cause of the problem.

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

    Posted 31 Jan 2018 Link to this post

    Hello, Daniel,

    Thank you for writing.  

    Calling BeginUpdate/EndUpdate methods are used to optimize performance. As a result only one refresh operation will be triggered. Following the provided information, I was unable to reproduce the issue you are facing. I have attached my sample project. Could you please specify the exact steps how to reproduce the problem? Thank you in advance. 

    I am looking forward to your reply.

     Regards,
    Dess
    Progress Telerik
    Try our brand new, jQuery-free Angular 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