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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Need to add additional parameters in Post request

Thread ID:





143588 Mar 28,2019 05:46 AM UTC Apr 1,2019 12:54 PM UTC Angular - EJ 2 1
Tags: Treeview
Md Jonayed Hossain Chowdhury
Asked On March 28, 2019 05:46 AM UTC

I need to make a treeview where I get the json formate from the server. I tried WebMethodAdaptor but failed. Code is: 

public hierarchicalData: Object = new DataManager({
adaptor: new WebMethodAdaptor,
}).executeQuery(new Query().addParams('projectID', 'C03374EC2')).then((e) => {console.log(e); });

Christopher Issac Sunder K [Syncfusion]
Replied On April 1, 2019 12:54 PM UTC

Hi Md Jonayed, 

We have validated your query. Please check whether you have properly initializes the params in the serve side where you fetch the data. 
[Server side code] 
// initializes params at server side. 
public bool requiresCounts { get; set; } 
public int skip { get; set; } 
public int take { get; set; } 
public string data { get; set; } 
public Dictionary<string, object> @params { get; set; } 

While providing the above code snippet you will get the params in the following format. 

This is how the additional parameters get added from the server side request. 

For more information you can check the following documentation link 

Please check whether the provided information fulfills your requirement . If not, please share your code snippet (server side) or sample that replicates your issue if possible. 



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