RadPaneGroup ItemTemplateSelector not working

2 posts, 0 answers
  1. Greg Horvath
    Greg Horvath avatar
    9 posts
    Member since:
    Aug 2009

    Posted 10 Feb 2015 Link to this post

    I am attempting to use an ItemTemplateSelectorselector with the RadPaneGroup control.


       <telerik:RadPaneGroup x:Name="RadPaneGroupMain" ItemsSource="{Binding OpenDocuments}" ItemTemplateSelector="        {StaticResource OpenDocumentTemplateSelector}">
    </telerik:RadPaneGroup>

    The ItemTemplateSelector is defined as a static resource on the window. It is getting instantiated (tested via breakpoint in constructor) but the DataTemplateSelector.SelectTemplate method is never called. Code for the DataTemplateSelector is below.

    internal class ModuleNodeEntityDataTemplateSelector : DataTemplateSelector
    {
        public const string NoModuleEntityEditorTemplateKey = "NoModuleEntityEditorTemplate";
     
        public override DataTemplate SelectTemplate(object item, DependencyObject container)
        {
            var containerTyped = (RadPaneGroup)container;
            return (DataTemplate) containerTyped.Resources[NoModuleEntityEditorTemplateKey];
        }
    }

  2. Kalin
    Admin
    Kalin avatar
    1208 posts

    Posted 13 Feb 2015 Link to this post

    Hi Greg,

    I'm afraid that the ItemTemplateSelector property is not supported from RadPaneGroup. You can check the following article for the full list of the not supported properties from RadDocking:
    http://docs.telerik.com/devtools/wpf/controls/raddocking/general-information/not-supported-properties.html

    Hope this helps.

    Regards,
    Kalin
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top