Hi,
Is it possible to add nodes on client and server manually outside of databinding? I mean like .nodes.add(new orgchartnode("abc"))
Hi,
Is there a way to keep an org chart populated after an ajax postback? if there is any ajax action on my page I lose the org chart and need to populate every time outside of !IsPostBack.
The ability to connect to a database using ASP.Net and C# and retrieve the hierarchical attribute of an entity in order to plot and draw its position within an org chart on a web page.
Hi,
I have 3 questions actually. Dont know the idea of posting it in the same thread is good or not. Please suggest. Below are my questions :
1. How to change the background color of groups (not the group items) based upon groups type user is selecting. Please see screen shot (ColoredGroups.png).
2. I want to define the height or vertical distance of node / groups from the parent nodes or show it horizontally but little below from parent node . Because of an obvious fact that the secretary of the CEO cannot be shown at the same level with other heads reporting to CEO in a real time Organization Chart. Please see LineHeight.png
3. PDF Export, I want to export the chart with titles and legends for groups and group items (customize PDF before exporting). Cannot export the html page using RadExport content because I am showing the RadOrgChart in RadSplitter center pane (fixed pane), left pane (sliding pane) has chart values (Titles and all) and right pane (also sliding pane) shows the tree of elements showing in the chart. I need to export only center page and its has only OrgChart nothing else. The left and right panes are sliding to proivde more space for the OrgChart to view (center pane).
I appreciate your kind help.
Thanks,
Jawwad
Hi
Is there a way to set the size of the exported PDF boxes in the org chart?
I have quite a large org chart to export and it would be really useful if I could increase the size of certain boxes (for example, where a manager has many subordinates, I'd like the make the manager's box larger).
Is this possible?
Hi,
I have an orgchart setup like this:
<telerik:RadOrgChart ID=
"RadOrgChart1"
runat=
"server"
OnNodeDataBound=
"RadOrgChart1_NodeDataBound"
Skin=
"Metro"
>
<ItemTemplate>
<divstyle=
"height: 50%"
>
<span>Name:
<%#DataBinder.Eval(Container.DataItem,
"Name"
)%></span>
<br/>
<span>
<%#DataBinder.Eval(Container.DataItem,
"role"
)%></span>
<telerik:RadGrid ID=
"RadGrid1"
runat=
"server"
OnNeedDataSource=
"RadGrid1_NeedDataSource"
>
</telerik:RadGrid></div>
</ItemTemplate>
</telerik:RadOrgChart>
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();
})