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

OnApplyTemplate not firing if control placed inside RadPanelBarItem

1 Answer 174 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Brian
Top achievements
Rank 1
Brian asked on 20 Dec 2010, 08:35 PM
After many hours of troubleshooting, we have discovered if a control(listbox) is placed inside a RadPanelBarItem, the OnApplyTemplate event of the control(listbox) is never fired. Here is the code inside the RadPanelBar.

<telerik:RadPanelBar AllowDrop="True">
    <telerik:RadPanelBarItem AllowDrop="True" >
                      
        <controls:CarListBox Name="lbCars" MinHeight="60" Margin="5" Cars="{Binding AllCars}" EnableDragAndDrop="True" Background="White" BorderBrush="Black" BorderThickness="1" Visibility="{Binding CanSeeCars}" />
                      
    </telerik:RadPanelBarItem>
</telerik:RadPanelBar>

The control is an MVVM implementation of a Telerik listbox with features added like filtering, context menus, sorting, drag and drop, and number of filtered rows in the listbox indicator. "Cars" is the bound observable collection passed to the listbox.

P.S. My client has an active full license to all the Telerik tools.

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 23 Dec 2010, 05:13 PM
Hi Brian,

We strongly discourage the use of Telerik ListBox, since it was created for the sole needs of our previous ScheduleViewer control. Our plans are to mark it as obsolete and remove in Q2 2011.
However, you can use the Silverlight`s native ListBox instead of the telerik`s one. Furthermore, you can use RadTreeView which can be templated to look just like a ListBox. It also implements the functionalities you`ve mentioned.
Feel free to ask if you need further assistance.

Greetings,
Petar Mladenov
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
Docking
Asked by
Brian
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or