Hi,
I'm using a simple setup with some items (just some strings) in a RadListBox with drag and drop to another RadListBox. The drag and drops works fine, but it seems like the property ListBoxDragDropBehavior.AllowReorder does not always work. As you can see I have set it to "false", and when dragging items in normal speed it prevents the items from being reordered. But if i drag and drop a bit more aggressively I can actually reorder the items within the same RadListBox. I added a custom implementation of the ListBoxDragDropBehavior with an override of CanDrop, but that method is never called when dragging aggressively.
<TabItem Header="DragTest"> <TabItem.Resources> <ResourceDictionary> <Style TargetType="telerik:RadListBoxItem" BasedOn="{StaticResource {x:Type telerik:RadListBoxItem}}"> <Setter Property="telerik:DragDropManager.AllowCapturedDrag" Value="True" /> </Style> </ResourceDictionary> </TabItem.Resources> <telerik:RadListBox AllowDrop="True" ItemsSource="{Binding DragItems1}" > <telerik:RadListBox.DragVisualProvider> <telerik:ScreenshotDragVisualProvider /> </telerik:RadListBox.DragVisualProvider> <telerik:RadListBox.DragDropBehavior> <telerik:ListBoxDragDropBehavior AllowReorder="False"/> </telerik:RadListBox.DragDropBehavior> </telerik:RadListBox></TabItem>
Hi ,
I have a requirement of Infinite paging,
Where I want both previous and next button to get navigate to last and first page respectively.
Navigating to first page on click of Next page button When user is on last page can be achieved by setting IsTotalItemCountFixed = false
But how to have previous page button navigate to the last page When User is on the First page of the Grid ?
Any assistance would be a great help :)
Hi,
I am having a problem with usage of cancel operation of DragInitializeEventArgs e in DragInitializeHandler.
After canceling particular items drag functionality it switches to parent item and marks it as chosen for dragging.
private void HandleDragInitialize(object sender, DragInitializeEventArgs e)
{
if(some condition)
{e.cancel=true;}
}
the item that belongs to mentioned condition will not get dragged but his parent instead.
Any solution?

Hi,
i have the following LinearAxis defined in my RadCartesianChart:
<telerik:RadCartesianChart.VerticalAxis> <telerik:LinearAxis LabelOffset="1" LineThickness="0" LabelFormat="P0" Maximum="1" Minimum="0" MajorStep="0.1"> </telerik:LinearAxis></telerik:RadCartesianChart.VerticalAxis>
I want labels only at values 0.1 (10 %) and 0.9 (90 %). See pictures in attchment (yellow lines are CartesianGridLineAnnotation and the blue one is the ScatterLineSeries).
How can I do this?
Thanks
Thomas

How can I specify AutomationIDs for Panes, Diagrams, and Nodes created at run-time in a project with MVVM architecture? Is there any example available?

I am trying to bind a RadContextMenu to dynamic data. For now though I am simply creating three items in the initialization method.
When I run the code WITHOUT having set the ItemContainerStyle in the RadContextMenu, I get a ContextMenu, however the text being displayed is the class name of the item being bound (see attached file for example)
When I insert the ItemContainerStyle in the XAML, nothing is displayed. However, in the "Opened" event of the RadContextMenu, I do see that the menu is "trying" to open yet nothing is ever displayed.
Without ItemContainerStyle, I get a pop-up with the class name of the items.
With ItemContainerStyle, I get nothing.
Here is the code wireup:
XAML in the UserControl where the RadContextMenu is defined:
<telerik:RadContextMenu.ContextMenu> <telerik:RadContextMenu x:Name="WorkListContextMenu" ItemsSource="{Binding WorkListContextMenuItems}" Opened="WorkListContextMenu_Opened"> <telerik:RadContextMenu.ItemContainerStyle> <Style TargetType="telerik:RadMenuItem"> <Setter Property="Header" Value="{Binding Header}" /> <Setter Property="ItemsSource" Value="{Binding SubItems}" /> <Setter Property="IsEnabled" Value="{Binding IsEnabled}"/> <Setter Property="IsChecked" Value="{Binding IsChecked}"/> </Style> </telerik:RadContextMenu.ItemContainerStyle> </telerik:RadContextMenu></telerik:RadContextMenu.ContextMenu>
When I comment out the "telerik:RadContextMenu.ItemContainerStyle" section, the pop-up appears, but with the classname of the ItemsSource Binding objects.
Not sure what I can do, I've researched for two days now and cannot find the solution. Can someone please offer a suggestion as to what I'm doing wrong?