This question is locked. New answers and comments are not allowed.
Hi,
DragDrop inside RadPanelBar is not working.
It is firing CanStartDrag and CanDrop event never fires.
Here is the code.
<telerik:RadPanelBar x:Name="radPanelBar1" IsTextSearchEnabled="False" VerticalAlignment="Stretch" Margin="0" d:LayoutOverrides="VerticalAlignment" HorizontalAlignment="Stretch" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollBarVisibility="Disabled">
<telerik:RadPanelBarItem x:Name="Calendar"
HorizontalAlignment="Stretch">
<telerik:RadPanelBarItem.Header>
<StackPanel Orientation="Horizontal">
</StackPanel>
</telerik:RadPanelBarItem.Header>
<Grid Background="White">
<scheduleView:RadScheduleView x:Name="scheduler" ActiveViewDefinitionIndex="2" telerik:StyleManager.Theme="Windows7" FontSize="9" FontFamily="Arial" >
<scheduleView:RadScheduleView.ViewDefinitions>
<scheduleView:DayViewDefinition ShowAllDayArea="True" ShowWeekGroupHeaders="True" />
<scheduleView:WeekViewDefinition ShowAllDayArea="True" ShowWeekGroupHeaders="True"/>
<scheduleView:MonthViewDefinition VisibleDays="30" />
</scheduleView:RadScheduleView.ViewDefinitions>
<telerik:RadScheduleView.DragDropBehavior>
<Calendar:CustomDragDropBehavior></Calendar:CustomDragDropBehavior>
</telerik:RadScheduleView.DragDropBehavior>
</scheduleView:RadScheduleView>
</Grid>
</telerik:RadPanelBarItem>
</telerik:RadPanelBar>
public class CustomDragDropBehavior : ScheduleViewDragDropBehavior
{
public override bool CanDrop(DragDropState state)
{
return true;
}
public override bool CanStartDrag(DragDropState state)
{
return true;
}
public override void Drop(DragDropState state)
{
base.Drop(state);
}
}
It is working fine when I don't keep Scheduler inside RadPanelBar.
DragDrop inside RadPanelBar is not working.
It is firing CanStartDrag and CanDrop event never fires.
Here is the code.
<telerik:RadPanelBar x:Name="radPanelBar1" IsTextSearchEnabled="False" VerticalAlignment="Stretch" Margin="0" d:LayoutOverrides="VerticalAlignment" HorizontalAlignment="Stretch" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollBarVisibility="Disabled">
<telerik:RadPanelBarItem x:Name="Calendar"
HorizontalAlignment="Stretch">
<telerik:RadPanelBarItem.Header>
<StackPanel Orientation="Horizontal">
</StackPanel>
</telerik:RadPanelBarItem.Header>
<Grid Background="White">
<scheduleView:RadScheduleView x:Name="scheduler" ActiveViewDefinitionIndex="2" telerik:StyleManager.Theme="Windows7" FontSize="9" FontFamily="Arial" >
<scheduleView:RadScheduleView.ViewDefinitions>
<scheduleView:DayViewDefinition ShowAllDayArea="True" ShowWeekGroupHeaders="True" />
<scheduleView:WeekViewDefinition ShowAllDayArea="True" ShowWeekGroupHeaders="True"/>
<scheduleView:MonthViewDefinition VisibleDays="30" />
</scheduleView:RadScheduleView.ViewDefinitions>
<telerik:RadScheduleView.DragDropBehavior>
<Calendar:CustomDragDropBehavior></Calendar:CustomDragDropBehavior>
</telerik:RadScheduleView.DragDropBehavior>
</scheduleView:RadScheduleView>
</Grid>
</telerik:RadPanelBarItem>
</telerik:RadPanelBar>
public class CustomDragDropBehavior : ScheduleViewDragDropBehavior
{
public override bool CanDrop(DragDropState state)
{
return true;
}
public override bool CanStartDrag(DragDropState state)
{
return true;
}
public override void Drop(DragDropState state)
{
base.Drop(state);
}
}
It is working fine when I don't keep Scheduler inside RadPanelBar.