does anyone know how to reduce the size of the nodes to display more nodes on a page? Specifically the Width?
I've used the css properties to shrink the size of the fonts and image but I don't know what I have to change to reduce the node size without messing up the whole chart.
code:
Thanks,
I've used the css properties to shrink the size of the fonts and image but I don't know what I have to change to reduce the node size without messing up the whole chart.
code:
<telerik:RadOrgChart ID="OrgChart" runat="server" DataFieldID="ID" DataFieldParentID="ParentID" Enabled="true" Width="100%">
<RenderedFields>
<ItemFields>
<telerik:OrgChartRenderedField DataField="BusinessTitle" />
<telerik:OrgChartRenderedField DataField="EmployeeName" />
</ItemFields>
</RenderedFields>
</telerik:RadOrgChart>
Thanks,
6 Answers, 1 is accepted
0
Hi Michael,
It's quite easy to override the width of the nodes. Just use the following snippet:
Note: we do plan to add attributes for the width, but that would be for a later release.
Regards,
Ivan Zhekov
the Telerik team
It's quite easy to override the width of the nodes. Just use the following snippet:
html .RadOrgChart .rocItem {
width
:
150px
;
}
Note: we do plan to add attributes for the width, but that would be for a later release.
Regards,
Ivan Zhekov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Michael
Top achievements
Rank 1
answered on 22 Nov 2011, 05:09 PM
Thank you very much for the quick response.
and it was easy :)
Does your team have any plans to add a zoom in/out feature to your chart?
and it was easy :)
Does your team have any plans to add a zoom in/out feature to your chart?
0
Hello Michael,
We are contemplating the possibility to implement zoom feature for our RadOrgChart for the future versions of the product. This, however, will most likely not happen for the next major release of the component.
Kind regards,
Sebastian
the Telerik team
We are contemplating the possibility to implement zoom feature for our RadOrgChart for the future versions of the product. This, however, will most likely not happen for the next major release of the component.
Kind regards,
Sebastian
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Kuldeep
Top achievements
Rank 1
answered on 11 Apr 2012, 03:15 AM
Thanks for the Fruitful Tip!!
But how to adjust the height of the node??
when i use
it adjusts spaces b/w the levels of the chart not the item height!!
But how to adjust the height of the node??
when i use
html .RadOrgChart .rocItem {
Height
:
60px
;}
it adjusts spaces b/w the levels of the chart not the item height!!
0
Hi, Kuldeep.
Adjusting the height of the nodes is not a matter of simple CSS snippet, as there are more things connected to it.
For now, you could use the following snippet:
In addition might you need to recalculate the exact position of the .rocLineDown.
But on the long term, you can file a new item in the PITS and vote for it.
All the best,
Ivan Zhekov
the Telerik team
Adjusting the height of the nodes is not a matter of simple CSS snippet, as there are more things connected to it.
For now, you could use the following snippet:
html .RadOrgChart .rocItem {
height
:
60px
;
/** Was 100 */
}
html .RadOrgChart .rocItemContent,
html .RadOrgChart .rocItemTemplate {
height
:
38px
;
/** Was 78 */
}
In addition might you need to recalculate the exact position of the .rocLineDown.
But on the long term, you can file a new item in the PITS and vote for it.
All the best,
Ivan Zhekov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Kuldeep
Top achievements
Rank 1
answered on 28 Apr 2012, 08:47 AM
Thanks Ivan!
I already made it working before your belated reply,
anyway it's good to see your reply,
Thanks a lot.
Have a good time.
I already made it working before your belated reply,
anyway it's good to see your reply,
Thanks a lot.
Have a good time.