We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Setting nodeId in data.nodeId of read action

Thread ID:

Created:

Updated:

Platform:

Replies:

144933 May 29,2019 10:03 AM UTC Jun 5,2019 04:38 AM UTC Angular - EJ 2 3
loading
Tags: FileManager
Sean Hamilton
Asked On May 29, 2019 10:03 AM UTC

The API returns the nodeId and parentID correctly when requested:


        {
            "name": "A",
            "size": 8,
            "dateModified": "Wed May 29 09:53:19 GMT 2019",
            "dateCreated": "Wed May 29 09:53:19 GMT 2019",
            "hasChild": false,
            "nodeId": "8",
            "parentID": "-1",
            "type": "",
            "filterPath": "",
            "file": false,
            "isFile": false
        },
        {
            "name": "C",
            "size": 9,
            "dateModified": "Wed May 29 09:53:19 GMT 2019",
            "dateCreated": "Wed May 29 09:53:19 GMT 2019",
            "hasChild": false,
            "nodeId": "9",
            "parentID": "-1",
            "type": "",
            "filterPath": "",
            "file": false,
            "isFile": false
        },
        {
            "name": "F",
            "size": 10,
            "dateModified": "Wed May 29 09:53:19 GMT 2019",
            "dateCreated": "Wed May 29 09:53:19 GMT 2019",
            "hasChild": false,
            "nodeId": "10",
            "parentID": "-1",
            "type": "",
            "filterPath": "",
            "file": false,
            "isFile": false
        }

But when requesting, for example the folder called A the request generated is:

 
   "action":"Read",
   "path":"/A/",
   "showHiddenItems":false,
   "data":[  
      {  
         "name":"A",
         "size":8,
         "dateModified":"2019-05-29T09:53:59.000Z",
         "dateCreated":"2019-05-29T09:53:59.000Z",
         "hasChild":false,
         "nodeId":"fe_tree_0_2",
         "parentID":"-1",
         "type":"",
         "filterPath":"",
         "file":false,
         "isFile":false,
         "iconClass":"e-fe-folder",
         "icon":"e-fe-folder",
         "htmlAttributes":{  
            "class":"e-large-icon",
            "title":"A"
         }
      }
   ]
}

All the other properties can be correctly set, only nodeId cannot. 

Thanks.

Christopher Issac Sunder K [Syncfusion]
Replied On May 30, 2019 10:20 AM UTC

Hi Sean, 

Greetings from Syncfusion support. 

We checked your reported query - “Not able to set nodeId in the FileManager’s read request“. The reason for this issue is that we have used the nodeId as an internal variable and we have processed the treeview by using nodeId as its id. So, even if the nodeId value is set initially in the read request it will be overridden in the source side. We will change the names of the internal variables used in the request so that it will be possible to modify the requested data without being overridden. We will make these changes and include them in our upcoming 2019 Vol 2 Main Release which is expected to be released in the month of June, 2019 You can track the status of this through the below feedback portal link, 

However, for now, you can resolve this issue by changing the id name(nodeId) passed in the read request which will be added to it. 

Let us know if you have any concerns 

Thanks,
Christo 


Sean Hamilton
Replied On June 4, 2019 11:58 AM UTC

Thank you, setting custom id names has solved the issue.

Keerthana Rajendran [Syncfusion]
Replied On June 5, 2019 04:38 AM UTC

Hi Sean,  
 
We are glad to know that the provided suggestion helped you to resolve the issue. Please get back to us if you need further assistance on this.  
 
Regards, 
Keerthana. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon