Open RadTileView element from code

0 Answers 39 Views
TileList TileView
Marco
Top achievements
Rank 1
Marco asked on 31 Oct 2023, 10:18 AM

Hello everyone,

 

in my application I have 2 different usercontrol. In first ine I have a RadTileView, In the other usercontrol I have a simple list of element present in the first usercontrol (with a dedicated button) and i want to open the radtile view element by click on the button.

Through this code


 var container = radTileElement.ItemContainerGenerator.ContainerFromItem(item) as RadTileViewItem;

 if (container != null)
 {
    container.TileState = TileViewItemState.Maximized;                 
 }

i can open the Tile view from the other usercontrol, but only if all element of RadTileView are in Minimized state. If a tile view element in the RaTileView is Maximized this call

 


radTileElement.ItemContainerGenerator.ContainerFromItem(item) as RadTileViewItem;

 return null.

 

Any suggestions?

 

Thank you

Dimitar
Telerik team
commented on 01 Nov 2023, 08:23 AM

Hi Marco, 

It seems that you have a very specific implementation and I am not sure how to recreate this case. Would it be possible for you to create a small sample project that reproduces this case and attach it here? This will give us a better understanding of your case and we will be able to suggest a solution. 

Thank you in advance for your patience and cooperation. I am looking forward to your reply.

No answers yet. Maybe you can help?

Tags
TileList TileView
Asked by
Marco
Top achievements
Rank 1
Share this question
or