I am Craeating a pie chart and disaplay in RadDock.
the problem is chart shows scroll in dock. I wants to remove scroll.
I am not giving chart heigth and dock also [dock created dynamically).
and how can I change chart colors.?
help me plz
thank with regards
1 Answer, 1 is accepted
answered on 15 Jul 2009, 01:31 PM
You can hide the scroll bars of the RadDock by overriding the CSS class of its content. Here is the source code that does this (please note that if the !important flag is omitted the CSS class will not be applied).
overflow: hidden !important;
In case you need to change the width and the height of the dock according to its content, our suggestion is to handle the OnClientInitialize client event, get the bounds of the RadDock's content and change accordingly the height and the width of the dock. Here is a sample event handler method (for the OnClientInitialize event) that does that:
function DockInitialize(dock, args)
var innerDiv = $get(dock.get_id() + '_C');
var innerDivSize = $telerik.getBounds(innerDiv);
To change the colors of the series elements in RadChart you can define a custom color palette containing the desired colors. Here is how to do this: