Hi,
Can we create our own controls like Rectangle, Ellipse and add them to the Rad Diagram for performing all the functionality which are supported by Rad Diagram?
Please send us example. I need to add Rectangle to the Rad Diagram and need to change its color, size... How to do that???
To dynamically get control I used below code:
And used the foreach loop to get the control and apply color... but we are not able to get any item in raddiag.Items it is showing null.. what we are missing here???? please let us know...
Keenly waiting for reply...
Regards,
Swati
Can we create our own controls like Rectangle, Ellipse and add them to the Rad Diagram for performing all the functionality which are supported by Rad Diagram?
Please send us example. I need to add Rectangle to the Rad Diagram and need to change its color, size... How to do that???
To dynamically get control I used below code:
RadDiagramShape shape=
new
RadDiagramShape();
shape.Geometry= ShapeFactory.GetShapeGeometry(CommonShapeType.RectangleShape);
raddiag.AddShape(shape);
foreach
(RadDiagramShape sample
in
raddiag.Items)
{
sample.Background = newBrush;
}
And used the foreach loop to get the control and apply color... but we are not able to get any item in raddiag.Items it is showing null.. what we are missing here???? please let us know...
Keenly waiting for reply...
Regards,
Swati