RadiantQ Forum

Product => WPF Gantt Package => Topic started by: tim on August 31, 2015, 09:01:27 AM

Title: NullReferenceException in TaskListControl
Post by: tim on August 31, 2015, 09:01:27 AM
Hello again,

occasionally, when I try to refresh/reload the data displayed in the gantt chart, I get a NullRefernceException.

I debugged the code and narrowed it down to the class "TasksListControl" and its method "TasksListControl_Loaded"

In that case the line "var itemsPresenter = Extensions.GetChild<ItemsPresenter>(this, false);" results in "itemsPresenter" being "null", which will later produce the exception.

It would be great, if you could fix this issue :)

Thanks,
Jan Reker
Title: Re: NullReferenceException in TaskListControl
Post by: Rajagopal on August 31, 2015, 03:09:27 PM
Jan,

Yes, we can provide an update with a fix for this soon. Before that can you tell us what exactly you mean by "refresh/reload"? Is it resetting the data or is the gantt getting refreshed by being on a Tab, for example?


Thanks,
Raja.
Title: Re: NullReferenceException in TaskListControl
Post by: tim on September 02, 2015, 06:22:46 AM
Raja,

by "refresh" I meant the when I alter the bound ItemSource (with quite a lot of objects) by clearing it and filling it with new data. Most of the time this works flawlessly, but sometimes it results in the mentioned exception.
Title: Re: NullReferenceException in TaskListControl
Post by: ForumAdmin on September 02, 2015, 07:16:09 PM
Jan,

We just sent you an updated assembly with the fix. Please verify.

Thanks
RQ Support