OnApplyTemplate not firing if control placed inside RadPanelBarItem

2 posts, 0 answers
  1. Brian
    Brian avatar
    19 posts
    Member since:
    Aug 2010

    Posted 20 Dec 2010 Link to this post

    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}" />

    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.
  2. Petar Mladenov
    Petar Mladenov avatar
    2882 posts

    Posted 23 Dec 2010 Link to this post

    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.

    Petar Mladenov
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
  3. DevCraft R3 2016 release webinar banner
Back to Top