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

Reorder issue with TileList inside TileView

2 Answers 24 Views
TileList
This is a migrated thread and some comments may be shown as answers.
Tobias
Top achievements
Rank 1
Tobias asked on 13 Sep 2018, 08:52 AM

Hello,

we discovered an issue when having a TileList-Control inside a TileView. The reorder doesn't work, the items just disappear...

Please look at the following example code:

<Grid>
           <Grid.ColumnDefinitions>
               <ColumnDefinition Width="*"/>
               <ColumnDefinition Width="*"/>
           </Grid.ColumnDefinitions>
            
           <!-- reorder works like a charm -->
           <telerik:RadTileList Grid.Column="0">
               <telerik:Tile TileType="Single" Background="#FF00A100" Content="A"/>
               <telerik:Tile TileType="Double" Background="#FFA10000" Content="B"/>
               <telerik:Tile TileType="Single" Background="#FF0000A1" Content="C"/>
           </telerik:RadTileList>
 
           <!-- reorder doesn't work -->
           <telerik:RadTileView Grid.Column="1">
               <telerik:RadTileList>
                   <telerik:Tile TileType="Single" Background="#FF00A100" Content="A"/>
                   <telerik:Tile TileType="Double" Background="#FFA10000" Content="B"/>
                   <telerik:Tile TileType="Single" Background="#FF0000A1" Content="C"/>
               </telerik:RadTileList>
           </telerik:RadTileView>
       </Grid>

2 Answers, 1 is accepted

Sort by
0
Dinko
Telerik team
answered on 17 Sep 2018, 01:46 PM
Hello Tobias,

Thank you for the provided code snippet.

Both controls have built-in drag and drop functionality. Placing RadTileList inside a RadTileView and drag a Tile will bubble up to an event of the RadTileView which leads to unexpected behaviors. To workaround this behavior you can subscribe to the DragInitialize event (using DragDropManager) of the RadTileViewItem which holds the RadTileList and handle the event.

Check the attached project which demonstrates this approach.

Regards,
Dinko
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Tobias
Top achievements
Rank 1
answered on 17 Sep 2018, 02:27 PM

Hello Dinko,

works! thanks a lot!

Cheers!

Tobias

Tags
TileList
Asked by
Tobias
Top achievements
Rank 1
Answers by
Dinko
Telerik team
Tobias
Top achievements
Rank 1
Share this question
or