Forums

How to disable auto post back when clicking on tree node

Last post 7/9/2009 4:00 PM by Mike Samteladze. 3 replies.
Sort Posts: Previous Next
  • Discovery IT

    How to disable auto post back when clicking on tree node

    7/3/2009 12:55 PM
    • Not Ranked
    • Joined on 5/20/2009
    • Posts 8

    Hi,

    I have created all nodes in tree. Whenever i click on any node, i see that the tree post-back to server. I don't want this behaviour, it's not good for performance because we have load all data for the tree.

    So please help me to disable post-back to server when clicking a node in tree.

    Regards,

    Discoveryit.

     

  • Mike Samteladze

    Re: How to disable auto post back when clicking on tree node

    7/9/2009 3:17 AM
    • Top 150 Contributor
    • Joined on 4/25/2009
    • Posts 151

    As I know, treelist RowClick doesn't raise postback by default. Can u post,  how did you populate your nodes, that they are posting back on click?

    Don't forget to "mark as answer" if helped Big Smile Big Smile Big Smile
  • ANDRES ROMERO

    Re: How to disable auto post back when clicking on tree node

    7/9/2009 3:37 PM
    • Not Ranked
    • Joined on 7/8/2009
    • Posts 6

    You are right Mike, it raises a Callback by default instead of a Postback, but the behavior is almost the same, it needs a  population of items every Postback/Callback and I think that in many cases it isn't the best way because of poor performance.

    I also want to know how to disable postbacks or callbacks on item node clicked.

  • Mike Samteladze

    Re: How to disable auto post back when clicking on tree node

    7/9/2009 4:00 PM
    • Top 150 Contributor
    • Joined on 4/25/2009
    • Posts 151

    the only way I know how to stop postback/callback is  e.processOnServer = false (e is clientside event arg)

    Don't forget to "mark as answer" if helped Big Smile Big Smile Big Smile
More from DevExpress
Live Chat
Have a pre-sales question?
Need assistance with your evaluation?
We are here to help.
Chat is one of the many ways you can contact members of the DevExpress Team. We are available Monday-Friday between 8:30am and 5:00pm Pacific Time.
If you need additional product information, require pre-sales assistance, or want help with your order, write to us at info@devexpress.com or call us at
+1 (818) 844-3383.