How to disable the treeview postback

Last post 12-01-2009 2:08 PM by mohi. 2 replies.

Sort Posts:

  • How to disable the treeview postback

    11-05-2009, 11:26 PM
    • Member
      6 point Member
    • ahrenck
    • Member since 10-27-2009, 7:48 AM
    • Posts 19

    Whenever I first load the treeview, those node that had child node will display as link node(like a url link), then when click on it, it will refresh (I think it postback, maybe because I am using simple treeview template in the tutorial, where there a label to postback which tree node you had click). 

    After every link node had been click once, when you click on the tree node again, it wouldn't refresh the page. 

    At first, I thought  it was the tree view adapter fault. Within the TreeViewAdapter, but when comment out the raisepostbackevent sub, the compilar display error. 

    My question is how to change this into a normal node. How to change it?

  • Re: How to disable the treeview postback

    11-06-2009, 3:17 AM
    • Contributor
      5,041 point Contributor
    • karthicks
    • Member since 01-09-2009, 12:43 PM
    • Chennai
    • Posts 867

    Set Node's SelectAction=None to which to you dont want to postback

    If this post is useful,
    Please,Dont Forget to click Mark As Answer and Earn Your Point

    Thanks,
    Karthick S
    Celebrate Programming
  • Re: How to disable the treeview postback

    12-01-2009, 2:08 PM
    • Member
      6 point Member
    • mohi
    • Member since 11-25-2009, 2:34 PM
    • Posts 24

    that will disble the selection compeletely, i want it to be able to select a node and fire the selectednode event but not cause a post back or is that impossible... 

Page 1 of 1 (3 items)