Silverlight - VectrolLight Tree View
-
I have load a large set of data from SQL Server into a three level tree. It is taking long time to populate the tree. Is there a way (e.g. lazy loading) to load only few records first and then load the rest of the records so that the tree area doe not remain empty for a long time.
-
I have load a large set of data from SQL Server into a three level tree. It is taking long time to populate the tree. Is there a way (e.g. lazy loading) to load only few records first and then load the rest of the records so that the tree area doe not remain empty for a long time.
Have you tried using TreeView from Silverlight Toolkit? We can probably provide more helps if you are using Silverlight Toolkit. Thanks.
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) Microsoft MVP (Silverlight), WPF/Silverlight Insiders
-
I have load a large set of data from SQL Server into a three level tree. It is taking long time to populate the tree. Is there a way (e.g. lazy loading) to load only few records first and then load the rest of the records so that the tree area doe not remain empty for a long time.
The normal way to do this is to load all the items at the level you are at, and then add a dummy item to the level below. Then, when you expand your treeview you check to see if the first node below is a dummy node - if so, you remove it and attempt to retrieve data from the database that's a child of the expanding item.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
-
Have you tried using TreeView from Silverlight Toolkit? We can probably provide more helps if you are using Silverlight Toolkit. Thanks.
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) Microsoft MVP (Silverlight), WPF/Silverlight Insiders
Oh how I wish Silverlight 3 supported virtualization on hierarchical items.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
-
Have you tried using TreeView from Silverlight Toolkit? We can probably provide more helps if you are using Silverlight Toolkit. Thanks.
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) Microsoft MVP (Silverlight), WPF/Silverlight Insiders
Hi Thanks for reply. Yes we tried the Silverlight tree, but results are not encouraging. We are only loading few hundred records and most of them are at first noode. It is still taking un-acceptable amount of time. Regards Rajeev