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

BringIntoView Diagram Issue

3 Answers 72 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Fahd
Top achievements
Rank 1
Fahd asked on 03 Feb 2017, 01:04 PM

Hi,

When I try to center a diagram using the BringIntoView method, the undo after centering the diagram is causing a bad behavior.

Here is a link for a demo that replicate the issue: http://dojo.telerik.com/esAVu

Replication steps:

1- Change the diagram position

2- Click on the Center button

3- Click the Undo button and check the behavior

The expected behavior is that the diagram will return to the old position before centering, instead it returns to completely random position.

Is this a bug in kendo diagram ? if yes, is there a consideration to fix it ?

 

3 Answers, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 07 Feb 2017, 12:27 PM

Hello,

I am afraid that the BringIntoView method of the Kendo UI Diagram does not have undo state. This is the reason why it moves the diagram to a random position if you try to undo after using the BringIntoView  method. 

 

Regards,
Boyan Dimitrov
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Fahd
Top achievements
Rank 1
answered on 07 Feb 2017, 01:10 PM

Hi,

Is there any future consideration to fix this issue ?

 

0
Boyan Dimitrov
Telerik team
answered on 09 Feb 2017, 08:28 AM

Hello,

I am afraid that undo stack is designed to store actions caused by the user interaction. Changing the position of the diagram shapes using the API is not intended to be stored in the undo stack. 

Still I would suggest to share your idea at Kendo UI UserVoice to allow other users vote for it. Most voted ideas are included in next Kendo UI releases. 

Regards,
Boyan Dimitrov
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Diagram
Asked by
Fahd
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Fahd
Top achievements
Rank 1
Share this question
or