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

Re: [ydn-javascript] Re: Overriding OnEventEditNode to behave as onEventCreateNode

Expand Messages
  • Satyam
    There is no onEventCreateNode, there are many kind of nodes you can create and many properties you could set on a newly created node so there is no way an
    Message 1 of 3 , Oct 31, 2008
    • 0 Attachment
      There is no onEventCreateNode, there are many kind of nodes you can
      create and many properties you could set on a newly created node so
      there is no way an onEventCreateNode could possibly satiusfy everyone.
      You can do something like it by:

      in response to clickEvent you get the node
      use that node as the parent to a new node you create, of any type, with
      any options
      call the editNode method on the newly created node

      Satyam


      kittumani wrote:
      > Thought i would give it more clarity for the treeview control ...
      > Here is the usecase for the control...
      > 1) select(onclick) an existing text node
      > 2) onclick create new text node button
      > 3) inline text box is now created and awaiting user input
      > 4) onclick save new text node .. to save it
      >
      >
      >
      > --- In ydn-javascript@yahoogroups.com, "kittumani" <kittumani@...> wrote:
      >
      >> OnEventEditNode creates inline editing of a node, not sure if there is
      >> a way to override the onEventEditNode to behave as onEventCreateNode.
      >>
      >> Where onEventCreateNode will create a inline textbox.
      >> The text entered in the box will have to be triggered by a separate
      >> save button. The resultant node will be sibling text node.
      >>
      >>
      >
      >
      >
      > ------------------------------------
      >
      > Yahoo! Groups Links
      >
      >
      >
      > ------------------------------------------------------------------------
      >
      >
      > No virus found in this incoming message.
      > Checked by AVG - http://www.avg.com
      > Version: 8.0.175 / Virus Database: 270.8.5/1757 - Release Date: 30/10/2008 14:35
      >
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.