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. IE Treeview Web Control and AutoPostBack

IE Treeview Web Control and AutoPostBack

Scheduled Pinned Locked Moved ASP.NET
design
2 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.
  • R Offline
    R Offline
    rturner003
    wrote on last edited by
    #1

    Microsofts IE Treeview Web Control is nice and smooth in working until you put in AutoPastBack = True. The section of the screen that holds the treeview then refreshes/flashes everytime a level is selected. I put the autopostback to true so that I could use the OnSelectedIndexChange. The event does not fire at every level but the screen refresh does. My code in the event is very simple: public void TreeView_SelectedIndexChanged(object sender,Microsoft.Web.UI.WebControls.TreeViewSelectEventArgs e) { lblTitle.Text = "Fred"; } private void InitializeComponent(){ this.TreeView2.SelectedIndexChange += new Microsoft.Web.UI.WebControls.SelectEventHandler(this.TreeView_SelectedIndexChanged); this.Load += new System.EventHandler(this.Page_Load); } Is there something I am missing so that the screen refreshes only when the event method is actioned. Robert T Turner South Gloucestershire Council

    C 1 Reply Last reply
    0
    • R rturner003

      Microsofts IE Treeview Web Control is nice and smooth in working until you put in AutoPastBack = True. The section of the screen that holds the treeview then refreshes/flashes everytime a level is selected. I put the autopostback to true so that I could use the OnSelectedIndexChange. The event does not fire at every level but the screen refresh does. My code in the event is very simple: public void TreeView_SelectedIndexChanged(object sender,Microsoft.Web.UI.WebControls.TreeViewSelectEventArgs e) { lblTitle.Text = "Fred"; } private void InitializeComponent(){ this.TreeView2.SelectedIndexChange += new Microsoft.Web.UI.WebControls.SelectEventHandler(this.TreeView_SelectedIndexChanged); this.Load += new System.EventHandler(this.Page_Load); } Is there something I am missing so that the screen refreshes only when the event method is actioned. Robert T Turner South Gloucestershire Council

      C Offline
      C Offline
      chintan1979
      wrote on last edited by
      #2

      Hi, It's not an answer to your question but I just want to know how can I use this control and what are the steps?? can you guide me on this pleaseeeeeeeee.. Also I want to populate the nodes from a sql database table is that possible??? Chintan

      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