Hi,
I've tried to get the OrgChart working and have had quite a few issues. I've had to build my own container to cope with scrolling as by default it doesn't allow for a container or zoom mechanisms. I'm now trying to do one more simple thing of having a client click event so that I can link to a record on the chart. I could never have imagined on having to ask for such a basic bit of functionality.
There is no click event and you have to do a work around. But the code that I have seen doesn't work as the Id that comes back is set to an empty string, the adapted code is below my rant.
Every time I work with something new I seem to be spending more time on getting it working than I should, everything needs a work around or another. The point of a control suite like this one is so that people don't need to do work arounds. Even more frustrating is the need to vote for good functions when they are suggested, just add them in!
So, please, someone from Telerik tell me how to do an onclick properly and then tell me that a proper onclick handler will be introduced in the next version. I suppose that this is the price to pay for the fact that all new controls are simply KendoUI controls re-engineered for ASP.NET?
Regards
Jon
$telerik.$(
".rocItem"
).click(
function
(e) {
var
orgChart = $find(
"<%= uxRadOrgChart.ClientID%>"
);
var
index = orgChart._extractGroupItemFromDomElement(e.target).getId();
})