Prevent automatic resizing a RadTileViewItem inside a RadTabItem

1 Answer 48 Views
TileView
David
Top achievements
Rank 1
David asked on 29 Aug 2023, 08:24 AM

Hello, 

I'm searching how to prevent a RadTileViewItem to automatically resize when switching to a different RadTabItem.

In our WPF application, we use the RadTabControl. The RadTabItems are dinamically created from user input. In a particular RadTabItem, I've include a RadTileView that is populated dinamically from ItemsSource.

The ContentChangeMode is set to Manual and I have a method managing it. It works well.

My problem is that when I maximize one item, its content switch to an editable control. The RadTileView is in a TabItem, so the user could click on an other Tab. When this occurs, all RadTileViewItems are refresh and them states are set to Restored. The RadTileViewItem I previously set to maximized is now Restored but his content is always linke to the "editable control".

My wish is to prevent this. The first solution possible is to block the MaximizedItem to set Restore state. Or second, when switching to Restore, force to set his state to NormalContent. These 2 solutions are OK for me.

 

Could someone help me or has an example of this?

Sorry if the question had already been posted, I didn't found someting.

And sorry for my poor english ;-)

 

Best regards

1 Answer, 1 is accepted

Sort by
0
Dinko
Telerik team
answered on 31 Aug 2023, 03:32 PM

Hello David,

May I ask if you can try setting the IsContentPreserved to True on the RadTabControl? You can take a look at how to keep the Content State article in our documentation for more information on this property.

If this suggestion does not help, could you send me a sample project that shows this behavior?

Regards,
Dinko
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.

David
Top achievements
Rank 1
commented on 20 Sep 2023, 02:36 PM

Hello Dinko, 

Thank you for your answer. We tried it and it seems to match with our needs. 

We was searching for something linked to TileView and not for RadTabControl.

Best regards,

 

Tags
TileView
Asked by
David
Top achievements
Rank 1
Answers by
Dinko
Telerik team
Share this question
or