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

TileViewItem Visibility Binding

4 Answers 85 Views
TileView
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 25 May 2012, 04:22 PM
I'm trying to bind the TileViewItem's visibility to a menu so that the user can filter which tiles to show, but the binding stops working after the first filter.

With this line uncommented, it works perfectly the first time TileVisibility is changed, then crashes for subsequent changes.
<telerik:ContainerBindingCollection x:Key="ContainerBindingCollection">
  <telerik:ContainerBinding PropertyName="TileState"
  Binding="{Binding ContentState, Mode=TwoWay, Converter={StaticResource tileStateConverter}}" />
  <!--<telerik:ContainerBinding PropertyName="Visibility" Binding="{Binding TileVisibility}" />-->
</telerik:ContainerBindingCollection>

<DataTemplate x:Key="TileViewItemTemplate"
    telerik:ContainerBinding.ContainerBindings="{StaticResource ContainerBindingCollection}">
   ...
</DataTemplate>

As a test, I also tried binding to the visibility of the content control, and this works. The content of the tiles is hidden or shown correctly based on the filter and never crashes.
<DataTemplate x:Key="TileViewContentTemplate" >
  <telerik:RadFluidContentControl Visibility="{Binding TileVisibility}"
      ContentChangeMode="Manual" TransitionDuration="0:0:0"
      State="{Binding ContentState, Converter={StaticResource fluidContentStateConverter}}">
  
         ...
  
  </telerik:RadFluidContentControl>
</DataTemplate>


What's wrong with the way I'm trying to bind the item visibility?

Thanks

4 Answers, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 30 May 2012, 02:50 PM
Hi Kevin,

Thank you for writing to us - we tested this case scenario and we can confirm that this is a bug. Basically when you simultaneously display collapsed items, while collapsing already displayed items, the RadTileView gets mixed up and throws this exception. This is why I logged it in our PITS where you can track the progress of the task..

In the meantime you can try separating the two operations - displaying the collapsed items in one iteration and collapsing the displayed in other. This should get over the exception.

However, while testing the scenario we also found that when the Visibility of the items is dynamically set, their positions aren't properly applied. So I logged this issue as a bug as well. And as a small sign of appreciation for bringing them to our attention, I updated your Telerik account.

Regards,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Prabhanjan
Top achievements
Rank 1
answered on 12 Dec 2012, 09:28 AM
Hi,

I am having similar problem as explained below i,.e, dynamically setting the visibility of the RadTileViewItem, re-arranges its position.  I believe this issue was fixed in your release (2012 Q2 SP+ -- 2012.2.725 ) . I would like to download the dlls related to this fix as we are working with an older version 2012.2.0607.1050. And since my support licence expired about 3 months ago, I am unable to download any! Would it possible for you to help me this regard

Thanks,
Kumar
0
Siobhan McTear
Top achievements
Rank 1
answered on 28 Apr 2014, 02:58 PM
We are affected by this issue - I can no longer find the PITS page provided - is there any update to this?
0
Pavel R. Pavlov
Telerik team
answered on 30 Apr 2014, 01:01 PM
Hi Siobhan,

The reason for dropping the PITS is the fact that we migrated to a new and improved items handling system - it is our feedback portal. Now users are allowed to create Feature Requests and Bug Reports on their own. After login any item it goes in a section where we approve or decline it after careful evaluation.

Regarding the earlier referenced PITS items -  I can confirm that they are already fixed in our code. The fixes are available in our latest official release. Please give it a try and let us know if you have any other questions.

Regards,
Pavel R. Pavlov
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
TileView
Asked by
Kevin
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Prabhanjan
Top achievements
Rank 1
Siobhan McTear
Top achievements
Rank 1
Pavel R. Pavlov
Telerik team
Share this question
or