Telerik Forums
UI for WPF Forum
5 answers
204 views

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>
Magnus
Top achievements
Rank 1
 answered on 28 Mar 2017
4 answers
246 views
See the image below. Obviouslly i can click the white x at the top right hand corner but it just reappears when i click another telerik control
Milena
Telerik team
 answered on 27 Mar 2017
0 answers
159 views

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 :)

Jai
Top achievements
Rank 1
 asked on 27 Mar 2017
1 answer
406 views
I have a Telerik grid, and have following columns, that are binding with a data source
The first three columns are bound with the datasource, i want the fourth column Status to display the value contained in the local variable localStatus
<telerik:RadGridView.Columns>
    <telerik:GridViewDataColumn Width="Auto" UniqueName="Id" Header="Id" DataMemberBinding="{Binding Id}"/>
<telerik:GridViewDataColumn Width="Auto" UniqueName="Name" Header="Name" DataMemberBinding="{Binding Name}"/>
<telerik:GridViewDataColumn Width="Auto" UniqueName="State" Header="State" DataMemberBinding="{Binding State}"/>
<telerik:GridViewDataColumn Width="Auto" UniqueName="Status" Header="Status" DataMemberBinding="{Binding localStatus}" "/>
</telerik:RadGridView.Columns>


How do i do that.
Stefan Nenchev
Telerik team
 answered on 27 Mar 2017
2 answers
227 views
Is it possible to prevent selection with the arrow keys? Whenever I press an arrow key the selected date change, but I would prefer if the selection wasn't changed until I confirm with Enter (which makes the popup close). I'm binding to SelectedDate and tried to set the UpdateSourceTrigger to LostFocus, but that didn't work.
Magnus
Top achievements
Rank 1
 answered on 27 Mar 2017
1 answer
148 views

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? 

Martin Ivanov
Telerik team
 answered on 27 Mar 2017
3 answers
419 views
Hi All

  I am Using Rad Menu. Basically i am created 3 menu items like File View and Users
where as User menu item i have binded submenu from database. how to add click event for that submenus.
how can acheive that .
Thanks
G Dinakaran
Tim
Top achievements
Rank 1
 answered on 26 Mar 2017
2 answers
222 views

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

 

Lance | Senior Manager Technical Support
Telerik team
 answered on 24 Mar 2017
1 answer
159 views

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?

Peshito
Telerik team
 answered on 24 Mar 2017
3 answers
402 views

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?

 

Kalin
Telerik team
 answered on 24 Mar 2017
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?