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

Tile position fix if only resized

6 Answers 63 Views
TileView
This is a migrated thread and some comments may be shown as answers.
Tim Tos
Top achievements
Rank 1
Tim Tos asked on 17 Nov 2010, 06:03 PM
Hello!

I've got a 3x2 tile grid. If I maximize the tile in the - let's say - lower right corner and then again minimize it, it is no longer in the lower right corner but in the top left corner. That's a really odd behavior but it seems to be the default. How can I change that? If the user doesn't move the tiles around they should be fix. So no change in position only due to maximizing and minimizing. How can one achieve that? (That behavior is also visible in the TileView demo on the telerik website)

Thanks a lot,
Tim.

_________
Telerik Silverlight Q3

6 Answers, 1 is accepted

Sort by
0
Bruno
Top achievements
Rank 1
answered on 18 Nov 2010, 04:09 PM
0
Tim Tos
Top achievements
Rank 1
answered on 18 Nov 2010, 04:12 PM
Hi Bruno,

thanks for mentioning. I've read your article but thought your problem was some kind of different! Don't know why. When I read it now it appears to be the same problem! :) Sorry for asking the same question again!

Tim.
0
Zarko
Telerik team
answered on 18 Nov 2010, 06:27 PM
Hi Tim Tos,

 Currently that's the default behavior and there's no straightforward way to change it. The easiest solution is to keep the original positions and set them back when you restore the items. Could you please examine the attached project and if you have further questions feel free to ask? 

Greetings,
Zarko
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Tim Tos
Top achievements
Rank 1
answered on 19 Nov 2010, 04:32 PM
Hi Zarko,

thanks for your answer! But unfortunately your sample app is not working for me!
I don't want to use MaximizeMode="One" and if I remove this property your sample is not working - the problem still exists like I described it...

Thanks again for your help,
Tim.
0
Zarko
Telerik team
answered on 23 Nov 2010, 05:07 PM
Hi Tim Tos,

 Please find the attached project "tileviewrestoreditemsposition.zip" and see if it works for you. 
For the next minor release we'll add a property which will allow you to disable the new behavior.
If you have further questions feel free to ask.

Best wishes,
Zarko
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Tim Tos
Top achievements
Rank 1
answered on 23 Nov 2010, 05:39 PM
Hi Zarko,

a big thanks for the code!
Although it is working better for me, if I remove the
&& originalPositions[item] != 0
in the  
myTileView_TilePositionChanged
method...

Thanks again - and I am looking forward to download the next minor release! ;)
Greetings,
Tim.
Tags
TileView
Asked by
Tim Tos
Top achievements
Rank 1
Answers by
Bruno
Top achievements
Rank 1
Tim Tos
Top achievements
Rank 1
Zarko
Telerik team
Share this question
or