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

Typescript EJDiagram - nodeSizeChange

Hi,
i'm export JS aplicattion to TypeScript. I have a problem with event "nodeSizeChange" because it never fire.
var diagram = new ej.datavisualization.Diagram(myContainer,
{
selectionChange: this.onSelectionChange,
drop: this.onDrop,
rotationChange: function (args) { debugger;},
height: "100%",
width: "100%",
enableAutoScroll: false,
nodeSizeChange: function (args) { debugger; }
});

Rotation fire but nodeSizeChange no.
Instead, Javascript work:
var diagram = $("#Diagram1").data("ejDiagram");

//On node size change
diagram.model.sizeChange = function (args) {
var h = args.element.height;
var w = args.element.width;
args.element.addInfo.height = h;
args.element.addInfo.width = w;
//Change size container
if(args.element !=undefined && args.element.addInfo!=undefined)
{
args.element.addInfo.setDimension(w,h);
}
};

Any idea?
Thanks!
Versions:
TypeScriptToolsVersion:1.5.2.0
Syncfusion TypeScript :version : 13.4.0.53
Syncfusion.Core, Version=13.4450.0.53
Syncfusion.EJ, Version=13.4450.0.53
Syncfusion.EJ.Mvc, Version=13.4500.0.53

1 Reply

SG Shyam G Syncfusion Team March 24, 2016 06:26 AM UTC

Hi David,


We considered this “sizeChange event not triggered in typescript” as an issue and a support incident has been created under your account to track the status of this requirement. Please log on to our support website to check for further updates.


https://www.syncfusion.com/account/login?ReturnUrl=/support/directtrac/incidents

                                                                                                                                    

Regards,

Shyam G


Loader.
Up arrow icon