TileView not laying out properly

39 posts, 0 answers
  1. Dheeraj Ramaswamy
    Dheeraj Ramaswamy avatar
    15 posts
    Member since:
    Jun 2008

    Posted 28 Jan 2010 Link to this post

    You are welcome. Glad could help.
  2. James
    James avatar
    9 posts
    Member since:
    Nov 2007

    Posted 29 Apr 2010 Link to this post

    Was this fixed. I have a problem that when I remove an item using code behind that the remaining items don't quite layout correctly. All items are in a single row in 'restored' state, and when I remove one they move in a little but still leave bigger than expected gaps between them. As soon as I click the header for any item they snap into place just as I want them. Is there anyway for me to simulate that click. I have tried forcing arrange and invalidating layout.
  3. DevCraft banner
  4. Vladislav
    Admin
    Vladislav avatar
    276 posts

    Posted 05 May 2010 Link to this post

    Hello James,

    Yes, this issue is fixed in our last official release "RadControls_for_Silverlight_3_2010_1_0422".
    I have prepared a sample project with the described behavior and it works as expected from our point of view.

    Can you please check it and let us know if you still experience any problems?

    Regards,
    Vladislav
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  5. Doug Beard
    Doug Beard avatar
    55 posts
    Member since:
    Sep 2009

    Posted 06 Nov 2010 Link to this post

    No, I can confirm the issue still exists in the lastest version.  The fuildcontent control does not replace content with the  proper template when state changes unless you manually change the tile state in the code behind via the tilestatechanged event.

  6. Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 08 Nov 2010 Link to this post

    Hello Doug Beard,

     Could you please send us a sample project that represents your issue, so we will be able to better assist you? In fact the best way of using the RadFluidContentControl inside RadTileView is to bind the TileState of the items to the State of the RadFluidContentControl. Could you please read this article and if you have further questions feel free to ask ?

    All the best,
    Zarko
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  7. Doug Beard
    Doug Beard avatar
    55 posts
    Member since:
    Sep 2009

    Posted 13 Nov 2010 Link to this post

    The suggested workaround assumes one can create custom transports specifically for binding to the TileView, which contain a custom property for storing the so called ContentState.

    Our ViewModel can not be tightly coupled to the View or the MVVM boundaries become blurred and concerns are not separated enough to be handled by separate teams.

  8. Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 17 Nov 2010 Link to this post

    Hi Doug Beard,

     My advice is to consider that adding one additional property to your ViewModel will not break the View - ViewModel separation(the property can be of any type - int, string etc.), but if you don't add it the only other solution is once the containers are generated to manually set bindings between the containers and their FluidContentControls. Please examine the attached project and if you have further questions feel free to ask.

    Best wishes,
    Zarko
    the Telerik team
    See What's New in RadControls for Silverlight in Q3 2010 on Tuesday, November 16, 2010 11:00 AM - 12:00 PM EST or 10:00 PM - 11:00 PM EST: Register here>>
  9. Doug Beard
    Doug Beard avatar
    55 posts
    Member since:
    Sep 2009

    Posted 17 Nov 2010 Link to this post

    But in your solution the View Model is actually a Business Object, not a View Model.  Adding the property to our View Model doesn't work, because the TileView is not bound to the ViewModel it is bound to a collection of business object IN the view model.

    View Models usually contain all the collections, objects and logic for the entire view.  Not just one collection for a single control within the view.  The proposed solution is engineered such that ContainerBindingSolution and the FluidContentControl are looking for the ContentState binding in the Business Object with in the collection which is bound to the tileview.

    Extending our Business Objects (Domain Services) is undesirable.  I'd like to see our teams tacking Views (Designers), View Models (Designer/Developer) independently.  Thus the View Model should contain no custom logic for the specific view and be transportable between WPF and Silverlight.

    For the moment, I have extended the partial class from the domain service which is within the list that binds to the tile view.  Adding a Content State property.  Honestly though,  the  (control) TileView should take care of this stuff encapsulated, not requiring the designer and the developer to collaborate on for simple databinding.
  10. Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 17 Nov 2010 Link to this post

    Hi Doug Beard,

     Sorry for the misunderstanding, in my previous reply by "adding one additional property to your ViewModel" I meant adding it to your TileViewItem Business Object.
     We plan to improve the integration between the TileView and the RadFluidContentControl for Q1 2011, but I can't give you a specific date for now.

    Greetings,
    Zarko
    the Telerik team
    See What's New in RadControls for Silverlight in Q3 2010 on Tuesday, November 16, 2010 11:00 AM - 12:00 PM EST or 10:00 PM - 11:00 PM EST: Register here>>
Back to Top
DevCraft banner