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

RadTreeListView NullReferenceException Issue

4 Answers 67 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Ivan Zlatanov
Top achievements
Rank 1
Ivan Zlatanov asked on 18 Nov 2011, 02:01 PM
Hi Guys,

I don't know whether this is GridView or RadTreeListView bug, but when you double click too fast to expand/collapse any row, you get null reference exception. The exception is thrown in GridViewRow.cs line 571: this.GridViewDataControl.RaiseRowActivated(this,this); where GridViewDataControl is being null.

Also I have the same problem when doing another thing. I subscribe for the row or cell (doesn't matter) double click event and in that event I try to change the IsExpanded property to it's opposite value. When I try to do that, I get the same NullReferenceException regarding the GridViewDataControl property.

I notice that you sometimes check for null value when accessing this property and sometimes you don't. Please advise. I would really want to be able to expand/collapse the row on double click event, but at this time I can't because of this internal exception.

I can provide you with sample code if you like, but I think the issues are very easy to spot.

Kind Regards,

Ivan.

4 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 18 Nov 2011, 02:03 PM
Hello Ivan,

 Can you post more info about your version? Is it our just released Q3 2011?

Greetings,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Ivan Zlatanov
Top achievements
Rank 1
answered on 18 Nov 2011, 02:05 PM
Hi,

Sorry, I forgot to mention that. Yes, it's the new release of the Q3. Just downloaded yesterday I think.

Kind Regards,

Ivan.
0
Accepted
Vlad
Telerik team
answered on 18 Nov 2011, 02:10 PM
Hi Ivan,

 We believe that we've found the problem and the issue was fixed immediately! The fix will be part of our next internal build (Monday). I've added 2000 Telerik points to your account.

Kind regards,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Ivan Zlatanov
Top achievements
Rank 1
answered on 18 Nov 2011, 02:20 PM
Thanks. Keep up the great work you're going!
Tags
TreeListView
Asked by
Ivan Zlatanov
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Ivan Zlatanov
Top achievements
Rank 1
Share this question
or