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

Automatic rearrangement of tiles and user resize of tiles

1 Answer 190 Views
Panorama
This is a migrated thread and some comments may be shown as answers.
Virginia
Top achievements
Rank 1
Virginia asked on 16 Dec 2020, 12:23 PM

Hello! I'm new to the panorama and didn't dive into the code yet, so I might ask some foolish question - sorry in advance.

 

Question 1. I see in the panorama demo that if the user drags and drop the tiles, changing their order and position, the rest of the tiles are automatically rearranged. Is this done in the demo code, or is it a method of the panorama? 

Is it possible to rearrange automatically the tiles after changing the size of on of the tiles? (I saw a thread where it was said that we have to do it manually, but it was in 2014, so maybe...)

 

Question 2. Is it possible for the user to resize the tiles with the mouse - drag from the right bottom corner for example? I guess if it is not an option of the control, there are still some other possibilities-we can check MouseOver, see if the position of the mouse is at the corner of a tile, change the cursor to indicate this<->, manage mouse click etc 

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 18 Dec 2020, 10:42 AM

Hello, Virginia,   

I will go straight to your questions:

1. RadPanorama is divided into rows and columns. The CellSize property indicates the size of a specific cell. Each tile in RadPanorama is associated with a specific location (panorama cell) which is being defined by the Row and Column properties of the tile:

The Column Span and Row Span specify whether the tile will occupy multiple cells.

The default reordering of tiles via drag and drop internally manages the Row and Column for the affected tiles. Hence, if you drag a tile over another one, they are shifted. This whole functionality is performed by the TileDragDropService. You can get familiar with its internal implementation if you download the source code from your Telerik account.

Hence, when you resize RadPanorama, the tiles remain at their defined cells (Row and Column properties). If you want to perform any rearrangement, you should do it programmatically by changing the Row/Column for each tile.

An alternative solution is to use RadListView in IconsView (see the attached gif file): https://docs.telerik.com/devtools/winforms/controls/listview/views#iconsview 

2. UI resizing of tiles in RadPanorama is not purposed to be supported. You can simulate such behavior programmatically by adjusting the ColSpan and RowSpan properties.

I hope this information helps. If you need any further assistance please don't hesitate to contact me.

Regards,
Dess | Tech Support Engineer, Sr.
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/.

Tags
Panorama
Asked by
Virginia
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or