This is a migrated thread and some comments may be shown as answers.

Position of each item

3 Answers 18 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Oliver
Top achievements
Rank 1
Oliver asked on 12 Mar 2021, 05:25 AM

Hello,

my request refers to the example here:
https://demos.telerik.com/aspnet-core/diagram/editing

Is it possible to set the position for each item?
It looks like the connectors are not moved to the new position, see attachment.

Maybe you could help with an example for asp.net core

 

Best regards,

Oliver

3 Answers, 1 is accepted

Sort by
0
Accepted
Anton Mironov
Telerik team
answered on 16 Mar 2021, 02:29 PM

Hello Oliver,

Thank you for the image and details provided.

In order to achieve the desired behavior for setting the default positions of the shapes, I would recommend using their "x" and "y" properties.

As required, I prepared a sample project(attached - "SampleProjectForOliver.zip" file). I am not sure about the problem with the connectors. Could you please provide more details? I made a video with the behavior at my side("VideoForOliver.zip" file).

Make the needed tests with the attached project locally and let me know if further assistance is needed.

 

Kind Regards,
Anton Mironov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Oliver
Top achievements
Rank 1
answered on 16 Mar 2021, 04:34 PM

Hello Anton,

Thank you a lot for the example.

I think i used x and y wrong in my first trys ... and i've changed layout to false. Works great :)

One last question: Is there an equivalent in Razor for layout: false?

 

Best regards,
Oliver

0
Anton Mironov
Telerik team
answered on 19 Mar 2021, 01:52 PM

Hello Oliver,

I am glad to hear that the issue you were facing is now resolved.

In order to set the Layout and all the needed properties of the Kendo UI Diagram in Razor Pages, I would recommend using the implementation from the following GitHub repository:

I hope this information helps.


Best Regards,
Anton Mironov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Diagram
Asked by
Oliver
Top achievements
Rank 1
Answers by
Anton Mironov
Telerik team
Oliver
Top achievements
Rank 1
Share this question
or