3 Replies Latest reply on Apr 6, 2009 5:15 AM by Nick Belaevski

    How to disable ajax request on expanding/collapsing of rich:

    Alexey Koloskov Newbie

      Hello!
      I want to disable sending ajax request on expand/collapse event on client side depending on some user decision. It's necessary for example to prevent losing of unsaved data. E.g.

      <rich:tree onexpand="if (!confirm('Are you sure?')) return false;" .../>
      


      But even if user press 'cancel' ajax request is sent all the same.
      I really wonder why expanding/collapsing action doesn't break if JS return false? Any reason?

      BTW the sane code for 'onselected' event works fine.

      Thanks in advance,
      Alexey