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

RadPaneGroup ItemTemplateSelector not working

1 Answer 96 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Greg Horvath
Top achievements
Rank 1
Greg Horvath asked on 10 Feb 2015, 07:52 PM
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];
    }
}

1 Answer, 1 is accepted

Sort by
0
Kalin
Telerik team
answered on 13 Feb 2015, 07:46 AM
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.

 
Tags
Docking
Asked by
Greg Horvath
Top achievements
Rank 1
Answers by
Kalin
Telerik team
Share this question
or