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

Problem with WebApiAdaptor

Thread ID:

Created:

Updated:

Platform:

Replies:

143654 Mar 30,2019 08:28 AM UTC Apr 1,2019 04:11 AM UTC Vue 2
loading
Tags: Data Grid
Federico
Asked On March 30, 2019 08:28 AM UTC

Hi I'm trying to load data with Vue component using the WebApiAdaptor, have a look at the code I implemented:
the problem is the endpoint called is the slash ("/") before the ?querystring.
Is it possible to remove that slash?

http://api/leads/?$inlinecount=allpages&$skip=0&$top=5

Due to this problem the datagrid is not working
Any ideas?

export default {
name: 'PageData',
components: {

GridPlugin
},
data() {
return {
data: new DataManager({
url: 'http://api/data',
adaptor: new WebApiAdaptor(),
crossDomain: true
}),
pageSettings: { pageSize: 5 },
filterOptions: {
type: 'Menu'
},
filter: {
type : 'CheckBox'
},
toolbar: ['Print', 'Search','ColumnChooser'],
}
},
mounted() {
let state = { skip: 0, take: 10 };
this.dataStateChange(state);
},
methods: {
dataStateChange: function (state) {
this.orderService.execute(state).then(( gridData ) => this.data = gridData );
},
todo() {},
},
provide: {
grid: [Page, Sort, Filter, Toolbar, ColumnChooser]
},
};

Federico
Replied On March 30, 2019 12:32 PM UTC

Hi solved. The / is append on the OPTIONS request. CLOSED

Pavithra Subramaniyam [Syncfusion]
Replied On April 1, 2019 04:11 AM UTC

Hi Federico,  

Thanks for your update. 

We are happy to hear that you have resolved the issue. 

Please contact us if you need any further assistance. As always, we will be happy to assist you.  

Regards,  
Pavithra S. 


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