new go.Binding("height", "height", function(x) {
rerturn parseInt(x);
}).makeTwoWay(),
I am passign height as string eg. { height : "100"}
and want to get height as Number if i access using part.data.height
but while accessing model data I am getiing height as string not as Number.
I have also tried both conversion function as mentioned here : Binding | GoJS API
Your conversion might work source-to-target, but you don’t have a back-conversion, so any setting of “height” in code will set the data.height as a number.
Either add a back-conversion function, or else keep the data property value a number. It seems to me that doing the latter would be easiest, but perhaps you have a good reason to keep the number in string format.