[CLOSED] treeview item move server-side event

  1. #1

    [CLOSED] treeview item move server-side event

    Hi, I have a treeview for which I have implemented the ItemMove direct-event. I want know pass source node id and target node id as extra params to server. I have been able to find the node.id method for source node but, which would the one for target node id?
    Last edited by Baidaly; Dec 11, 2013 at 9:37 PM. Reason: [CLOSED]
  2. #2
    Hi @jstifel,

    This example
    https://examples2.ext.net/#/Events/Listeners/Arguments/
    shows this signature for the ItemMove event.

    function (item, oldParent, newParent, index, options)
    I think the "newParent" argument is a new parent node.

    See also:
    http://docs.sencha.com/extjs/4.2.1/#...event-itemmove
  3. #3
    Ok, I have been trying to pass oldParent, newParent information back to server side using ExtraParams with no result. I went on checking ext.js documentation on oldParent and saw it is of class Ext.data.NodeInterface. Then browsed across Ext.data.NodeInterface properties to see if there is any I can use to identify the ID of the node and could not find any. Can you give and example on how to pass target ,parent and node ID as ExtraParams?
  4. #4
  5. #5
    Ok, got it. I did not define a store and model for treePanel, instead created manually each item on code behind so getId will not work. Instead decided to add configItem with ID value and reference item.data.id on extraParam. Worked fine.

    Thanks for the tips. Can close the case know.
  6. #6
    Quote Originally Posted by jstifel View Post
    instead created manually each item on code behind so getId will not work.
    Please clarify did you use a Node and its NodeID property?

Similar Threads

  1. [CLOSED] Server validation before item move
    By RCN in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 08, 2012, 8:08 PM
  2. Replies: 0
    Last Post: Oct 25, 2010, 9:49 AM
  3. How to fire server side event for menu item.
    By Satyanarayana murthy in forum 1.x Help
    Replies: 5
    Last Post: Dec 03, 2009, 10:55 AM
  4. [CLOSED] How raise server side event while selecting a node in treeview
    By Satyanarayana murthy in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Nov 17, 2009, 2:32 AM
  5. multi select add selected item on server side
    By [WP]joju in forum 1.x Help
    Replies: 4
    Last Post: Jan 09, 2009, 7:01 AM

Tags for this Thread

Posting Permissions