Telerik Forums
UI for WPF Forum
20 answers
1.6K+ views
Hey guys,  I am tyring to capture the drop event in my viewModel using MVVM with the RadDragAndDropManager.  Is it possible to configure the RadDragAndDropManager in XAML such that I can define the handler of the event?

For example, I tried something like this:

        <Style TargetType="telerik:GridViewRow" x:Key="OrderItemStyle">  
            <Setter Property="dragDrop:RadDragAndDropManager.AllowDrop" Value="True" /> 
            <Setter Property="dragDrop:RadDragAndDropManager.DropQueryEvent" Value="OnRowDropQuery" /> 
            <Setter Property="dragDrop:RadDragAndDropManager.AllowDrag" Value="True" /> 
        </Style> 
 

but the DropQueryEvent is not recognized as being available in the RadDragAndDropManager.

Any ideas? 
recotech
Top achievements
Rank 1
 answered on 16 Feb 2012
3 answers
190 views
Is it possible to access the GridView's drag template/style (see image)? I'm trying to recreate it for a custom drag scenario

Nick
Telerik team
 answered on 16 Feb 2012
1 answer
104 views
I have a RadGridView

<telerik:RadGridView Background="Black" HorizontalContentAlignment="Center" Loaded="GridView_Loaded" BorderThickness="0" AutoGenerateColumns="False" Grid.Row="0" x:Name="GridView" EditTriggers="None" CanUserDeleteRows="False" Foreground="White" SelectionChanged="GridView_SelectionChanged" RowIndicatorVisibility="Collapsed">

and as soon as it gets loaded I get this error:

Cannot create instance of 'FrozenColumnsSplitter' defined in assembly 'Telerik.Windows.Controls.GridView, Version=2011.3.1220.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7'. Exception has been thrown by the target of an invocation.  Error at object '1_T' in markup file 'Telerik.Windows.Controls.GridView;component/themes/Metro/DataCellsPresenter.xaml'.

I've tried different themes, they all do it. Please advise!
Vlad
Telerik team
 answered on 16 Feb 2012
5 answers
216 views
Hi,

I'm using gridView for my application which include insert, edit, delete operations. During insert/Edit the row, if I click any other row/cell, the CommitEdit() is fired. How do I stop this event?

Thanks,

Li
Henky Wibowo
Top achievements
Rank 1
 answered on 16 Feb 2012
2 answers
117 views

Good Morning,

I am happy with the min and max values the AutoRange is providing for the Y-Axis for my line chart but the AutoRange has a step of 20 and I prefer 10.

Is it possible to set a manual step if setting AutoRange to true?

Furthermore, is it possible to set a max value for the AutoRange to use, as I notice the y range ends a little higher than it really needs to? For example, the Y-Axis range may start at 0 and end at 15 when it really only needs to end at 10, as the highest Y value is 9.5.

Thank you in advance,

David.

David Huxtable
Top achievements
Rank 1
 answered on 16 Feb 2012
1 answer
141 views
How do you change the viewport header text style/color?
Evgenia
Telerik team
 answered on 15 Feb 2012
2 answers
222 views
While I know it is possible to add custom buttons ta a RadPane header, is it possible to add functionality such as 'minimize' to it? Specifically when it is NOT floating?

For example, I have a RadPanelBar with 4 panels stacked vertically. I want a button in each RadPane header that will effectively 'minimize' the RadPane to just the header. Obviously I'd like the opposite effect too. It doesn't appear that there are any sizing methods to do this  as just changing the heights has odd results... especially when multiple RadPanes are 'minimized'.
Joe Biggert
Top achievements
Rank 1
 answered on 15 Feb 2012
1 answer
433 views
Hi - I have this split button with 3 menu items. When I click on one of the menu items, I'm expecting the dropdown to close. I tried creating a template which sets StaysOpenOnClick="False", also tried setting it to false directly on each menu item but the dropdown continues to stay open. I've also tried handling the Click event to close the button. Nothing seems to work. Any ideas?

Here is the style I tried: 
<Style TargetType="telerik:RadMenuItem">
    <Setter Property="Header" Value="{Binding RelativeSource={RelativeSource Self}, Path=Command.DisplayName, Mode=OneWay}" />
    <Setter Property="ToolTip" Value="{Binding RelativeSource={RelativeSource Self}, Path=Command.Description, Mode=OneWay}" />
    <Setter Property="StaysOpenOnClick" Value="False" />
 </Style>

Here is the click handler I tried:

        private void RadMenuItem_Click(object sender, Telerik.Windows.RadRoutedEventArgs e)
        {
            RadMenuItem item = e.Source as RadMenuItem;

            RadDropDownButton btn = item.ParentOfType<RadDropDownButton>();

            if (btn != null)
            {
                btn.IsOpen = false;
            }
        }

Here is the SplitButton:
<telerik:RadSplitButton Command="{Binding Path=ThisButtonComman}"
                                    ToolTip="Default action."
                                    Content="Click this button"
                                    Height="25"
                                    Margin="10,5,0,5"
                                    AutomationProperties.AutomationId="SweetSplitButton"
                                    AutomationProperties.Name="Sweet split button.">
        <telerik:RadSplitButton.DropDownContent>
          <telerik:RadMenu telerik:StyleManager.Theme="Summer" Background="Transparent" Orientation="Vertical">
            <telerik:RadMenuItem Command="{Binding Path=Command1}"
                                       AutomationProperties.AutomationId="Id1"
                                       AutomationProperties.Name="Name1." />
            <telerik:RadMenuItem Command="{Binding Path=Command1}"
                                       AutomationProperties.AutomationId="Id2"
                                       AutomationProperties.Name="Name2." />
            <telerik:RadMenuItem Command="{Binding Path=Command3}"
                                       AutomationProperties.AutomationId="Id3"
                                       AutomationProperties.Name="Name3." />            
          </telerik:RadMenu>
        </telerik:RadSplitButton.DropDownContent>
      </telerik:RadSplitButton>

Thanks,
Chris
Zarko
Telerik team
 answered on 15 Feb 2012
2 answers
147 views
I have a GridView that's grouped. When the groups are collapsed, I want to have the number of items selected in each group show up in the "collapsed header" for that group. I've poked around, but it doesn't look like it's possible.

Any thoughts?
Michael Eaton
Top achievements
Rank 1
 answered on 15 Feb 2012
1 answer
68 views
When my page is loaded, I create a handful of custom appointments and bind them to my radScheduleView.  If I try to drag them around or resize them, it works as anticipated (there is a blank 'ghost' order that gets moved around as I am dragging or resizing the load that tells me the start and end times of the order if I were to drop it).  However, it only works once per order.

Immediately after performing one drag or resize, whenever I try to do another, there is no 'ghost' order.  The drag operation or resize operation is still performed (and the ghost image shows up if you try to drag it to a different resource), but if I try to move it around in its current resource, no 'ghost' order shows up.  Obviously this isn't that big of a deal, but I'm certain the users of this page will find it a touch obnoxious.

My guess is I need to do something (or am doing something wrong) in the copy or copyfrom functions that I override from the AppointmentBase class (I have also tried inheriting from just the appointment class and not overriding those functions, but that didn't work either).  During the drop function after a drag or a resize, those functions are called and a new Appointment is created.  If there is something different about the newly created Appointment, that would explain the change in the dragdrop functionality.  If anyone could offer any guidance, it would be truly appreciated.  Thanks!
Konstantina
Telerik team
 answered on 15 Feb 2012
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
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
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
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?