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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. control treeview at the click event of button

control treeview at the click event of button

Scheduled Pinned Locked Moved ASP.NET
help
5 Posts 2 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.
  • N Offline
    N Offline
    neha12
    wrote on last edited by
    #1

    Hello , In my application , I have got 2 frames -:left frame & right frame. Treeview control is in the left frame .Now there is a button "Next" which is also there in the left frame. Now what I need to do is , at the click event of the button , I would like to activate a particular node of the treeview. Like I want to control my treeview with the help of buttons. But Iam not able to do so. Thanks, neha

    S 1 Reply Last reply
    0
    • N neha12

      Hello , In my application , I have got 2 frames -:left frame & right frame. Treeview control is in the left frame .Now there is a button "Next" which is also there in the left frame. Now what I need to do is , at the click event of the button , I would like to activate a particular node of the treeview. Like I want to control my treeview with the help of buttons. But Iam not able to do so. Thanks, neha

      S Offline
      S Offline
      Serge Lobko Lobanovsky
      wrote on last edited by
      #2

      you could make the following: 1) make your Buttons not web-controls, but HTML client controls 2) when generating TreeView contents, add HTML anchor tags (A) 3) add client onClick handler for the buttons which will jump to the specified A tags Regards, Serge (Logic Software)

      N 1 Reply Last reply
      0
      • S Serge Lobko Lobanovsky

        you could make the following: 1) make your Buttons not web-controls, but HTML client controls 2) when generating TreeView contents, add HTML anchor tags (A) 3) add client onClick handler for the buttons which will jump to the specified A tags Regards, Serge (Logic Software)

        N Offline
        N Offline
        neha12
        wrote on last edited by
        #3

        could u please a bit more clear ..

        S 1 Reply Last reply
        0
        • N neha12

          could u please a bit more clear ..

          S Offline
          S Offline
          Serge Lobko Lobanovsky
          wrote on last edited by
          #4

          oops, sorry, I misunderstood your post (language difference, i think) if you want to populate the right frame while clicking "next" or "prev" button in the left frame, this can be done by changing "target" property of the form in the left to the name of the right frame. what i think should be done is 1) maintain a client Java script array of all nodes through which you want to iterate 2) maintain a current node so that you know what's next or prev 3) have a Hidden input field in the left frame, and when user clicks on "Next" or "Prev" buttons, populate that field with the node that should be displayed in the right frame, and do "form.submit()" 4) in the form's code behind check the value of the hidden field, and do Response.Redirect according to it does that make more sense? :) Regards, Serge (Logic Software)

          N 1 Reply Last reply
          0
          • S Serge Lobko Lobanovsky

            oops, sorry, I misunderstood your post (language difference, i think) if you want to populate the right frame while clicking "next" or "prev" button in the left frame, this can be done by changing "target" property of the form in the left to the name of the right frame. what i think should be done is 1) maintain a client Java script array of all nodes through which you want to iterate 2) maintain a current node so that you know what's next or prev 3) have a Hidden input field in the left frame, and when user clicks on "Next" or "Prev" buttons, populate that field with the node that should be displayed in the right frame, and do "form.submit()" 4) in the form's code behind check the value of the hidden field, and do Response.Redirect according to it does that make more sense? :) Regards, Serge (Logic Software)

            N Offline
            N Offline
            neha12
            wrote on last edited by
            #5

            No this also dosent work !!!!

            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