Tile position fix if only resized

7 posts, 0 answers
  1. Tim Tos
    Tim Tos avatar
    36 posts
    Member since:
    Apr 2010

    Posted 17 Nov 2010 Link to this post

    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
  2. Bruno
    Bruno avatar
    54 posts
    Member since:
    Jul 2012
  3. DevCraft banner
  4. Tim Tos
    Tim Tos avatar
    36 posts
    Member since:
    Apr 2010

    Posted 18 Nov 2010 Link to this post

    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.
  5. Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 18 Nov 2010 Link to this post

    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
  6. Tim Tos
    Tim Tos avatar
    36 posts
    Member since:
    Apr 2010

    Posted 19 Nov 2010 Link to this post

    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.
  7. Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 23 Nov 2010 Link to this post

    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
  8. Tim Tos
    Tim Tos avatar
    36 posts
    Member since:
    Apr 2010

    Posted 23 Nov 2010 Link to this post

    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.
Back to Top
DevCraft banner