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. Web Development
  3. ASP.NET
  4. about tree view web control

about tree view web control

Scheduled Pinned Locked Moved ASP.NET
htmldatabasedata-structureshelp
6 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.
  • A Offline
    A Offline
    amir_iiui
    wrote on last edited by
    #1

    Hi all, i want my data coming from a database table to be displayed in tree view web controls. I want to add the check box with the tree view in such a way that the text of the tree is displayed on first column of the ( html) table while the checboxes display on about one or two inch distance on the right of the text ( may be in third column of the html table) ....... These check boxes must be bound with the relevant entry in the tree view..... can some body help me in this regard....

    M 1 Reply Last reply
    0
    • A amir_iiui

      Hi all, i want my data coming from a database table to be displayed in tree view web controls. I want to add the check box with the tree view in such a way that the text of the tree is displayed on first column of the ( html) table while the checboxes display on about one or two inch distance on the right of the text ( may be in third column of the html table) ....... These check boxes must be bound with the relevant entry in the tree view..... can some body help me in this regard....

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      If you want to change the display of the treeview control based on your requirement, I think you will have to open and modify the treeview.htc file that should appear in the webctrl_client/1_0 folder. This file is an HTML file that contains script and a set of HTC-specific elements that define the treeview component. You first need to investigate how the treeview is built, then you can modify it to meet your demand. For more information on HTC, see HTC Reference [^]

      A 1 Reply Last reply
      0
      • M minhpc_bk

        If you want to change the display of the treeview control based on your requirement, I think you will have to open and modify the treeview.htc file that should appear in the webctrl_client/1_0 folder. This file is an HTML file that contains script and a set of HTC-specific elements that define the treeview component. You first need to investigate how the treeview is built, then you can modify it to meet your demand. For more information on HTC, see HTC Reference [^]

        A Offline
        A Offline
        amir_iiui
        wrote on last edited by
        #3

        Is there not some easy way????? Above solution will be very much time taking..... I will prefer if there is some easy way there........

        J 1 Reply Last reply
        0
        • A amir_iiui

          Is there not some easy way????? Above solution will be very much time taking..... I will prefer if there is some easy way there........

          J Offline
          J Offline
          Jesse Squire
          wrote on last edited by
          #4

          Sadly, no... there really isn't an easy way. The Microsoft Tree View web control isn't the most developer friendly beast, and provides only basic functionality. If you're uncomfortable/unwilling to modify the HTC, you may wish to look into purchasing a third party control that has a better interface and more features. A google search will provide you with plenty of options. Hope that helps a bit. :) --Jesse

          A 1 Reply Last reply
          0
          • J Jesse Squire

            Sadly, no... there really isn't an easy way. The Microsoft Tree View web control isn't the most developer friendly beast, and provides only basic functionality. If you're uncomfortable/unwilling to modify the HTC, you may wish to look into purchasing a third party control that has a better interface and more features. A google search will provide you with plenty of options. Hope that helps a bit. :) --Jesse

            A Offline
            A Offline
            amir_iiui
            wrote on last edited by
            #5

            ok...... i will try to change the HTC.....

            M 1 Reply Last reply
            0
            • A amir_iiui

              ok...... i will try to change the HTC.....

              M Offline
              M Offline
              minhpc_bk
              wrote on last edited by
              #6

              Hi there, If you are uncomfortable with the HTC stuff, and not planning to purchase a third-party component, you can think of re-designing the UI in the way that you can apply the control without changing its default behavior. That's might be easier for you, and you can also save your time to do other things.

              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