kanban load server data

For the life of me I cannot get the data to load dynamically from the server into the Kanban.

I can load the exact same response from a local json file and I can see the response coming back from the server in the same format but it just doesn’t seem to bind.

I have tried, the url of the kanaban object, webix.ajax and all of its variations but no joy.

Here is one example of what I am doing in the Init() …

	webix.ajax()
	.get("http://localhost:5002/api/Ticket/Search", test)
	.then((data) => {

		// prints the json to the console
		console.log(data.json().data);

		$$("myBoard").load( data );
		// or
		$$("myBoard").load( data.json() );
		// or
		$$("myBoard").load( data.json().data );
	}) 

Any ideas?

Thanks

Hello,

The Webix patterns of the data loading work in a bit different way:

  • load executes its own AJAX request and expects a link as a parameter,
  • parse loads the data which was already on the client-side (a result of a ajax call, as in your example)

So the correct way to load the data with a separate ajax call is

 webix.ajax()
    .get("http://localhost:5002/api/Ticket/Search", test)
    .then((data) => {
        // $$("myBoard").clearAll(); // uncomment to clear old data
        $$("myBoard").parse( data.json() );
    })