Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. Silverlight - VectrolLight Tree View

Silverlight - VectrolLight Tree View

Scheduled Pinned Locked Moved WPF
databasesql-serversysadmindata-structuresjson
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Rajeev Raina
    wrote on last edited by
    #1

    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.

    M P 2 Replies Last reply
    0
    • R Rajeev Raina

      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.

      M Offline
      M Offline
      Michael Sync
      wrote on last edited by
      #2

      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

      P R 2 Replies Last reply
      0
      • R Rajeev Raina

        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.

        P Offline
        P Offline
        Pete OHanlon
        wrote on last edited by
        #3

        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.

        My blog | My articles | MoXAML PowerToys | Onyx

        1 Reply Last reply
        0
        • M Michael Sync

          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

          P Offline
          P Offline
          Pete OHanlon
          wrote on last edited by
          #4

          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.

          My blog | My articles | MoXAML PowerToys | Onyx

          1 Reply Last reply
          0
          • M Michael Sync

            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

            R Offline
            R Offline
            Rajeev Raina
            wrote on last edited by
            #5

            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

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups