I have looked at the example in the demo, but I don't want to have to use a rad window.. I have the orgchart inside of a RadPageView.
So my question is how do I get the control for the setZoom Function in the online demo
If you look at the first line that doesn't work it returns a null. I am new to Javascripting so I am not sure how to grab the control.
So my question is how do I get the control for the setZoom Function in the online demo
If you look at the first line that doesn't work it returns a null. I am new to Javascripting so I am not sure how to grab the control.
function setZoom() { var org = $find(".RadOrgChart").get(0); var org = $($(".RadWindow iframe").get(0).contentWindow.document).find(".RadOrgChart").get(0) //var org = $find("ctl00_MainContent_rocProjects"); if ($telerik.isFirefox) org.style.MozTransform = "scale(" + scaleParamX + "," + scaleParamY + ")"; else if ($telerik.isIE && !$telerik.isIE7) org.style.zoom = scaleParamX; else if ($telerik.isIE7) $(org).find(".rocRootNodeList").get(0).style.zoom = scaleParamX; else if ($telerik.isOpera || $telerik.isSafari) org.style.WebkitTransform = "scale(" + scaleParamX + ")";}