Hello,
I have problem with setting custom position of rectangle shapes on the diagram using server-side data binding with SQL DataSource.
these are diagram settings:
<telerik:RadDiagram ID="brackets" runat="server" Width="100%" Height="450" BorderWidth="1" BorderColor="#dddddd" DataSourceId="IntegratedDiagramDS" ConnectionDataSourceId="IntegrationDiagramsConnDS" OnItemDataBound="brackets_ItemDataBound" EnableViewState="false"> <ClientEvents OnLoad="diagram_load" OnMouseEnter="mouseEnter" OnClick="OnShapeClick" /><ConnectionDefaultsSettings Editable="false" Selectable="false"></ConnectionDefaultsSettings><ShapeDefaultsSettings Editable="false" Selectable="false" Height="40" Width="160"> <StrokeSettings Width="2" /></ShapeDefaultsSettings><BindingSettings> <ShapeSettings DataFillColorField="BCGColor" DataStrokeColorField="BorderColor" DataContentTextField="IntegratedObject" DataIdField="FieldTableID" DataXField="XVal" DataYField="YVal"/> <ConnectionSettings DataFromShapeIdField="RelatedID" DataToShapeIdField="FieldTableID"/></BindingSettings></telerik:RadDiagram>
There are no problems with displaying and connections, everything is working fine. since I want to display diagram shapes on custom position (not randomly) I've set DataXField and DataYField to set specific position for each shape, but as a result I have same display as if those attributes are not set. It looks like they are somehow ignored.
Attached files:
- sample data from DB - samledata.png
- what I get as a result - defaultPreview.png
- position on page source - defaultXYValues. As You can see these are default values, starting from position 50,50...
Can someone advice what I'm doing wrong?
Thanks in advance,
Stefan
