First question:
Is it possible to have IsLoadOnDemand = true but NOT show the arrows on some items? (The arrows that indicate the items have items themselves). Not all our items have children, so we don't want to show the arrows in all of the items.
http://www.screencast.com/users/CarloToribio/folders/Jing/media/abe8d5f6-a1f0-4776-9812-b709f3ff4c97
Second question:
How can I make the items show the loading animation while I'm doing something in the LoadOnDemand event? We're trying to deserialize some objects in there, and it might take a second or two, but the animation doesn't show up, it just freezes for those two seconds. I tried it this way but no luck:
Any suggestions?
Thanks.
Thanks.
Is it possible to have IsLoadOnDemand = true but NOT show the arrows on some items? (The arrows that indicate the items have items themselves). Not all our items have children, so we don't want to show the arrows in all of the items.
http://www.screencast.com/users/CarloToribio/folders/Jing/media/abe8d5f6-a1f0-4776-9812-b709f3ff4c97
Second question:
How can I make the items show the loading animation while I'm doing something in the LoadOnDemand event? We're trying to deserialize some objects in there, and it might take a second or two, but the animation doesn't show up, it just freezes for those two seconds. I tried it this way but no luck:
private
void
treeView_LoadOnDemand(
object
sender, RadRoutedEventArgs e)
{
RadTreeViewItem clickedItem = e.Source
as
RadTreeViewItem;
clickedItem.Dispatcher.BeginInvoke(
new
ThreadStart(
delegate
{
clickedItem.Items.Add(
new
RadTreeViewItem() { Header = clickedItem.Header +
"."
+ (clickedItem.Items.Count + 1) });
Thread.Sleep(2000);
}));
}
Any suggestions?
Thanks.
Thanks.