This question is locked. New answers and comments are not allowed.
Hello Telerik,
I just updated to the last Q3 2012 release and my application doesn't work anymore.
It seems that the problem happens during expanding the rows. This code worked just fine in the previous Q2 release:
Note that ExpandAllHierarchyItems (method of the TreeListView) worked as expected. I tried to use the latest internal build but it didn't help.
I hope you can give me a fix as soon as possible.
Greetings,
Nicolas
I just updated to the last Q3 2012 release and my application doesn't work anymore.
It seems that the problem happens during expanding the rows. This code worked just fine in the previous Q2 release:
private
void
DataLoaded()
{
this
.busyEmployeeIndicator.IsBusy =
true
;
this
.treeListView.DataLoaded -=
this
.treeListView_DataLoaded;
this
.Dispatcher.BeginInvoke((() =>
{
// Expand the tree
this
.ExpandHierarchy(
this
.treeListView.ItemsSource);
// Scroll to current week
this
.ScrollToWeek(Week.Current);
// Close the busy indicator
this
.busyEmployeeIndicator.IsBusy =
false
;
//this.treeListView.UpdateLayout();
}));
}
private
void
ExpandHierarchy(
object
source)
{
if
(source
is
ICollection)
{
foreach
(
object
item
in
(ICollection)source)
{
// Expand all departments
if
(item
is
Department)
{
this
.treeListView.ExpandHierarchyItem(item
);
this
.ExpandHierarchy(((Department)item).Children.ToList());
}
else
if
....
}
}
}
Note that ExpandAllHierarchyItems (method of the TreeListView) worked as expected. I tried to use the latest internal build but it didn't help.
I hope you can give me a fix as soon as possible.
Greetings,
Nicolas