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