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

Need to add additional parameters in Post request

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); });

1 Reply

CI Christopher Issac Sunder K Syncfusion Team 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. 


Live Chat Icon For mobile
Up arrow icon