Problems with ContentTemplate distroyed

2 posts, 0 answers
  1. Nick Wood
    Nick Wood avatar
    126 posts
    Member since:
    Feb 2010

    Posted 23 Apr 2011 Link to this post

    Hi All

    I have discovered a major issue with the latest Telerik binaries added to our project (Q1 2011), we recently updated from Q3 2010.
     
    I have a RadTab control in my site virtualizer feature that binds to an ObservableCollection itemssource. There are controls on both the parent UI and the DataTemplates for the Tab Items that bind to properties on the Collection ViewModels.
     
    This was all working perfectly on the previous Telerik bin versions, but after the update, it was only the first selected tab that would bind correctly. Any tab selected after that would raise the property change from both the parent and the DataTemplate, but it would not communicate between the 2. It seems to be as if there are cloned DataContext/ViewModels created so separate instances of the same ViewModel.
     
    It was confirmed as being an issue with the Telerik bin version when I rolled back to the previous builds and the features worked as they previous had, as they should have.
     
    There are some major changes to the way in which navigation controls now create instances, they now release non selected ControlTemplates, see here: http://www.telerik.com/help/silverlight/radtabcontrol-how-to-keep-content.html
     
    I have tried setting the: IsContentPreserved Property to true as suggested, but it does not bind to the Collection for the ContentTemplate as a DataContext at all..

    This seems to be a major issue and it seems to relate to a navigation base class as I tried this also by binding to the same ItemsSource from a RadPaneGroup:

    <telerik:RadPaneGroup ItemsSource="{Binding SiteLayoutVMs}" ItemTemplate="{StaticResource SiteVirtualDisplayLayoutsHeader}"
                                              ContentTemplate="{StaticResource SiteVirtualDisplayLayoutsTemplate}"
                                              SelectedItem="{Binding SelectedDisplayLayout, Mode=TwoWay}">

    But the very same issue occured.

    Please respond ASAP

    Nick



  2. Nick Wood
    Nick Wood avatar
    126 posts
    Member since:
    Feb 2010

    Posted 24 Apr 2011 Link to this post

    Nevermind

    Fixed in the latest build 2011_1_0419
  3. DevCraft banner
Back to Top