Loading ...
Sorry, an error occurred while loading the content.

Re: [ydn-javascript] Re: Prevent Tree Collpase

Expand Messages
  • Satyam
    I am not sure what you mean, If there was no Event object coming from IE, it wouldn t be able to find out what the node is so, if you have a oArgs.node it is
    Message 1 of 4 , Sep 29, 2009
    • 0 Attachment
      I am not sure what you mean, If there was no Event object coming from
      IE, it wouldn't be able to find out what the node is so, if you have a
      oArgs.node it is because there was an oArgs.event, otherwise, TreeView
      itself wouldn't have been able to find it.

      Satyam


      furenberger escribió:
      > That doesnt work in Internet Explorer. The Event object has no definition. So I am manually re-toggling them before the default toggle happens.
      >
      > childTree.subscribe('clickEvent',function (oArgs) {
      > oArgs.node.toggleHighlight();
      > var checkedNodes = getCheckedNodes();
      >
      > if(checkedNodes){
      > handleChildNodeCheck(checkedNodes);
      > }
      > oArgs.node.toggle();
      >
      > });
      > --- In ydn-javascript@yahoogroups.com, Satyam <satyam@...> wrote:
      >
      >> If the event listener returns false, it will prevent the default
      >> behavior, which is to toggle.
      >>
      >> Satyam
      >>
      >> furenberger escribió:
      >>
      >>> I have the 2.8 treeview and the node is expanded. When the user checks the box it fires this click event but also it collapses that node. How can I prevent that?
      >>>
      >>> //update the child tree based on the position
      >>> //we will dynamically add the subChild to the tree
      >>> childTree.subscribe('clickEvent',function (oArgs) {
      >>> oArgs.node.toggleHighlight();
      >>> var checkedNodes = getCheckedNodes();
      >>>
      >>> if(checkedNodes){
      >>> handleChildNodeCheck(checkedNodes);
      >>> }
      >>> });
      >>>
      >>>
      >>>
      >>> ------------------------------------
      >>>
      >>> Yahoo! Groups Links
      >>>
      >>>
      >>>
      >>> ------------------------------------------------------------------------
      >>>
      >>>
      >>> No virus found in this incoming message.
      >>> Checked by AVG - www.avg.com
      >>> Version: 8.5.409 / Virus Database: 270.13.113/2399 - Release Date: 09/27/09 17:52:00
      >>>
      >>>
      >>>
      >
      >
      >
      >
      > ------------------------------------
      >
      > Yahoo! Groups Links
      >
      >
      >
      > ------------------------------------------------------------------------
      >
      >
      > No virus found in this incoming message.
      > Checked by AVG - www.avg.com
      > Version: 8.5.409 / Virus Database: 270.13.114/2402 - Release Date: 09/29/09 05:54:00
      >
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.