@tesicg wrote:
I have palette and diagram. There are some macro-objects in palette and when I drop them to diagram they expand to particular element plus table where are properties of that element. The issue is I call AJAX at the very beginning of JavaScript file in this way:
function initMacro() { jQuery.ajax({ type: "GET", url: '/Home/GetRandomObjectProperties' }).done(function(data) { var $ = go.GraphObject.make; ...that triggers MVC's /Home/GetRandomObjectProperties method only once and tables contain the same properties for all elements. Of course, each element has its own list of properties, which means described scenario doesn't work properly.
My question is how to trigger AJAX call when drop the particular macro-element to diagram in order to show different properties for different elements?
This is how it looks like:
Posts: 15
Participants: 2
