Telerik Forums
UI for WPF Forum
8 answers
294 views
Hello Telerik team,

I have set the following properties in the gridview excel copy related functionalities.

 

 

SelectionMode="Extended" 
ClipboardCopyMode="All" 
ClipboardPasteMode="Default" 
SelectionUnit="Cell"


My requirement:

I have field in the grid that can be nullable. The CellEditTemple of the field has a dropdown.


<telerik:GridViewDataColumn DataMemberBinding="{Binding ActTypeDesc, Mode=TwoWay}" 
                            Header="ACTTYPE" Width="75" Tag="ActTypeDesc" UniqueName="ActTypeDesc">
                    <telerik:GridViewDataColumn.CellEditTemplate>
                        <DataTemplate>
                            <telerik:RadComboBox SelectionChanged="radCmbActType_SelectionChanged"
                                                
 Loaded="radCmbActType_Loaded" Tag="ActTypeDesc" Name="radCmbActType"/>
                        </DataTemplate>
                    </telerik:GridViewDataColumn.CellEditTemplate>
                </telerik:GridViewDataColumn>


Now when I try to paste a non-empty value onto the grid cell I can see that the PastingCellClipboardContent event gets fired.

But when I try to copy a empty cell from the excel and paste onto the grid cell the PastingCellClipboardContent even is not fired.

I wanted to set selected item of the dropdown in this case to null, but the PastingCellClipboardContent doesn;t seem to fire when the cell copied is empty.

I even tried to set the ClipboardPasteMode property to "OverwriteWithEmptyValues" but even this did not seem to help me.

If possible, could you please help me with my requirement.


Many thanks!

Regards,
Mausami
Amit
Top achievements
Rank 1
 answered on 05 Nov 2012
4 answers
306 views
Hi guys,

I would like to display my RadGridView row details outside of the RadGridView (working with RadControls for WPF Q3 2012
).
I found some samples implementing the DetailsPresenter + DetailsProvider pointing to the RadGridview's RowDetailsProvider.
I tryed to implement it working with my RadGridView's RowDetailsTemplateSelector but the rowdetail still display inside the Grid, below the selected row. 

I tried another solution, setting the DetailsPresenter's "ContentTemplateSelector" instead of the RadGridView's RowDetailsTemplateSelector. In that particular case, the External DetailsPresenter does not bind to Selected Row Data: nothing is displayed in the details.

Any idea how I'm supposed to implement that?
Thanx' for your help.
JC
Jc
Top achievements
Rank 1
 answered on 05 Nov 2012
6 answers
167 views
Hello,

im trying to reorder Auto Genarated Datagrid Columns via Drag and Drop.and have a Exception(new Q3 Release)

Object reference not set to an instance of an object.

   at Telerik.Windows.Controls.DraggedElement.HideNoCursor() in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Controls\GridView\GridView\GridView\DragDrop\DraggedElement.cs:line 111
   at Telerik.Windows.Controls.GridView.DragDropController.OnGridViewDrop(Object sender, DragEventArgs e) in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Controls\GridView\GridView\GridView\DragDrop\DragDropController.cs:line 90
   at Telerik.Windows.DragDrop.DragEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget) in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\DragDropManager\DragEventArgs.cs:line 181
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
   at Telerik.Windows.DragDrop.IInputElementExtensions.RaiseEvent(DependencyObject d, RoutedEventArgs routedEventArgs) in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\DragDropManager\DependencyObjectExtensions.cs:line 82
   at Telerik.Windows.DragDrop.DragDropManager.DelegateHelper.OnDragEventHandler(Object sender, DragEventArgs e) in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\DragDropManager\DragDropManager.cs:line 1735
   at Telerik.Windows.DragDrop.DragDropManager.DelegateHelper.OnDrop(Object sender, DragEventArgs e) in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\DragDropManager\DragDropManager.cs:line 1780
   at System.Windows.DragEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
   at System.Windows.OleDropTarget.RaiseDragEvent(RoutedEvent dragEvent, Int32 dragDropKeyStates, Int32& effects, DependencyObject target, Point targetPoint)
   at System.Windows.OleDropTarget.MS.Win32.UnsafeNativeMethods.IOleDropTarget.OleDrop(Object data, Int32 dragDropKeyStates, Int64 point, Int32& effects)



Nick
Telerik team
 answered on 05 Nov 2012
2 answers
296 views
Hey,

I'm using RadDiagram in a databound application. For each shape I have some additional information I want to provide. Is there any way to set the Tooltip of a shape? I tried to set the ToolTip property on the shape's style and even in the content of the shape I am not able to have a tooltip on a component. It seems like the Diagram itself disables all tooltips of child elements. Hope you can tell me a way to show tooltips on shapes.

Thank you in advance.

Best Regards,
Peter Schmidt
Peter
Top achievements
Rank 1
 answered on 05 Nov 2012
3 answers
207 views
Hi,

I use the RadGridView in a very simple way. I bind a collection of simple objects with two string properties and a collection of some arbitrary child objects to the RadGridView. In addition this collection is cleared and refilled every three seconds.

The situation I see is if the class used in the bound collection implements the INotifyPropertyChanged interface everything is fine. If this class does not implement this interface it seems to be leaking and runs out of memory after about 20 seconds (OutOfMemoryException).

Is it really a must to implement this interface even if no data change is necessary?
It's a little bit hard if you want to use an external object and always have to wrap it.

Or is it just a Bug?

Telerik Version: 2011.1.315.40

Thanks and best regards

PS. Is there a way to provide you a sample project? I have a simple one were the effect is clearly seen.
Dimitrina
Telerik team
 answered on 05 Nov 2012
1 answer
89 views
I use the StackedBarSeries to display data.While drawing some of the columns are overwritten by other columns. Tell me how to fix this?
Q2 2012 SP2

<telerik:RadChart>
                    <telerik:RadChart.SeriesMappings>
                        <telerikCharting:SeriesMapping ItemsSource="{Binding Source={StaticResource lastDaysVM}, Path=Count.InboxServed}" LegendLabel="↓ Вручено">
                            <telerikCharting:SeriesMapping.SeriesDefinition>
                                <telerikCharting:StackedBarSeriesDefinition StackGroupName="Inbox"></telerikCharting:StackedBarSeriesDefinition>
                            </telerikCharting:SeriesMapping.SeriesDefinition>
                            <telerikCharting:SeriesMapping.ItemMappings>
                                <telerikCharting:ItemMapping FieldName="Date" DataPointMember="XCategory"></telerikCharting:ItemMapping>
                                <telerikCharting:ItemMapping FieldName="Count" DataPointMember="YValue"></telerikCharting:ItemMapping>
                            </telerikCharting:SeriesMapping.ItemMappings>
                        </telerikCharting:SeriesMapping>
                         
                        <telerikCharting:SeriesMapping ItemsSource="{Binding Source={StaticResource lastDaysVM}, Path=Count.InboxNotServed}" LegendLabel="↓ Не вручено">
                            <telerikCharting:SeriesMapping.SeriesDefinition>
                                <telerikCharting:StackedBarSeriesDefinition StackGroupName="Inbox"></telerikCharting:StackedBarSeriesDefinition>
                            </telerikCharting:SeriesMapping.SeriesDefinition>
                            <telerikCharting:SeriesMapping.ItemMappings>
                                <telerikCharting:ItemMapping FieldName="Date" DataPointMember="XCategory"></telerikCharting:ItemMapping>
                                <telerikCharting:ItemMapping FieldName="Count" DataPointMember="YValue"></telerikCharting:ItemMapping>
                            </telerikCharting:SeriesMapping.ItemMappings>
                        </telerikCharting:SeriesMapping>
                         
                        <telerikCharting:SeriesMapping ItemsSource="{Binding Source={StaticResource lastDaysVM}, Path=Count.InboxNotServedRejected}" LegendLabel="↓ Отклонено">
                            <telerikCharting:SeriesMapping.SeriesDefinition>
                                <telerikCharting:StackedBarSeriesDefinition StackGroupName="Inbox"></telerikCharting:StackedBarSeriesDefinition>
                            </telerikCharting:SeriesMapping.SeriesDefinition>
                            <telerikCharting:SeriesMapping.ItemMappings>
                                <telerikCharting:ItemMapping FieldName="Date" DataPointMember="XCategory"></telerikCharting:ItemMapping>
                                <telerikCharting:ItemMapping FieldName="Count" DataPointMember="YValue"></telerikCharting:ItemMapping>
                            </telerikCharting:SeriesMapping.ItemMappings>
                        </telerikCharting:SeriesMapping>
                         
                        <telerikCharting:SeriesMapping ItemsSource="{Binding Source={StaticResource lastDaysVM}, Path=Count.OutboxSend}" LegendLabel="↑ Отправлено">
                            <telerikCharting:SeriesMapping.SeriesDefinition>
                                <telerikCharting:StackedBarSeriesDefinition StackGroupName="Outbox"></telerikCharting:StackedBarSeriesDefinition>
                            </telerikCharting:SeriesMapping.SeriesDefinition>
                            <telerikCharting:SeriesMapping.ItemMappings>
                                <telerikCharting:ItemMapping FieldName="Date" DataPointMember="XCategory"></telerikCharting:ItemMapping>
                                <telerikCharting:ItemMapping FieldName="Count" DataPointMember="YValue"></telerikCharting:ItemMapping>
                            </telerikCharting:SeriesMapping.ItemMappings>
                        </telerikCharting:SeriesMapping>
                         
                        <telerikCharting:SeriesMapping ItemsSource="{Binding Source={StaticResource lastDaysVM}, Path=Count.OutboxNotSend}" LegendLabel="↑ Не отправлено">
                            <telerikCharting:SeriesMapping.SeriesDefinition>
                                <telerikCharting:StackedBarSeriesDefinition StackGroupName="Outbox"></telerikCharting:StackedBarSeriesDefinition>
                            </telerikCharting:SeriesMapping.SeriesDefinition>
                            <telerikCharting:SeriesMapping.ItemMappings>
                                <telerikCharting:ItemMapping FieldName="Date" DataPointMember="XCategory"></telerikCharting:ItemMapping>
                                <telerikCharting:ItemMapping FieldName="Count" DataPointMember="YValue"></telerikCharting:ItemMapping>
                            </telerikCharting:SeriesMapping.ItemMappings>
                        </telerikCharting:SeriesMapping>
                         
                        <telerikCharting:SeriesMapping ItemsSource="{Binding Source={StaticResource lastDaysVM}, Path=Count.OutboxNotSendRejected}" LegendLabel="↑ Отклонено">
                            <telerikCharting:SeriesMapping.SeriesDefinition>
                                <telerikCharting:StackedBarSeriesDefinition StackGroupName="Outbox"></telerikCharting:StackedBarSeriesDefinition>
                            </telerikCharting:SeriesMapping.SeriesDefinition>
                            <telerikCharting:SeriesMapping.ItemMappings>
                                <telerikCharting:ItemMapping FieldName="Date" DataPointMember="XCategory"></telerikCharting:ItemMapping>
                                <telerikCharting:ItemMapping FieldName="Count" DataPointMember="YValue"></telerikCharting:ItemMapping>
                            </telerikCharting:SeriesMapping.ItemMappings>
                        </telerikCharting:SeriesMapping>
                    </telerik:RadChart.SeriesMappings>
                     
                    <telerik:RadChart.DefaultView>
                        <telerikCharting:ChartDefaultView ChartLegendPosition="Bottom">
                            <telerikCharting:ChartDefaultView.ChartLegend>
                                <telerikCharting:ChartLegend x:Name="chartLegend" Header="Корреспонденция"></telerikCharting:ChartLegend>
                            </telerikCharting:ChartDefaultView.ChartLegend>
                            <telerikCharting:ChartDefaultView.ChartArea>
                                <telerikCharting:ChartArea LegendName="chartLegend">
                                    <telerik:ChartArea.AxisY>
                                        <telerikCharting:AxisY MinValue="0" MinorTickPointMultiplier="1"></telerikCharting:AxisY>
                                    </telerik:ChartArea.AxisY>
                                    <telerikCharting:ChartArea.AxisX>
                                        <telerikCharting:AxisX DefaultLabelFormat="dd-MMM" LabelRotationAngle="90"></telerikCharting:AxisX>
                                    </telerikCharting:ChartArea.AxisX>
                                </telerikCharting:ChartArea>
                            </telerikCharting:ChartDefaultView.ChartArea>
                        </telerikCharting:ChartDefaultView>
                    </telerik:RadChart.DefaultView>
                </telerik:RadChart>
Petar Marchev
Telerik team
 answered on 05 Nov 2012
1 answer
80 views
Hi -- I've been working with the RadDocking framework and Prism, and am very happy with the way things are coming.
However, I've run into a snag with the Visual Studio designer for XAML on RadDocumentPane views.

My app is using a custom region adapter from these forums for the RadPaneGroup, which is working great.  The views that I create in my other projects are where the issue comes in.  The XAML for those views looks something like this (obviously more interesting than just a single hello world button).  Note that this is the whole file -- there is no encapsulating user control or anything. 
<telerikDocking:RadDocumentPane x:Class="Nwp.BackOffice.Settings.MatchingCriteria.RadDocumentPaneTest"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                     xmlns:telerikDocking="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Docking"
                     mc:Ignorable="d"
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <Button>Hello World</Button>
    </Grid>
</telerikDocking:RadDocumentPane>

In the designer view, all I can see is a 300x300 grey box -- none of the inside contents.  I *can* change it from a RadDocumentPane to a UserControl (top, bottom tags, then any Resources tags, etc.  This lets me see the contents properly, but then I have to go back and change it back before compile and run time.

Any insight as to how I might better play with the designer (have tried in VS 2010 Utilimate and VS 2012 Ultimate with same results).

Thanks in advance -
Yana
Telerik team
 answered on 05 Nov 2012
0 answers
133 views
 Hi This Surya ,I want change group header background color in rad grid view .I attached a screen shot .can u send design code for me .I am waiting for your reply.


Thanks & Regards
surya
Jeevan
Top achievements
Rank 1
 asked on 05 Nov 2012
5 answers
480 views
Hello !
Is there any example of Using RadEntityFrameworkDataSource with RadGridView for Editing ?
I Want to Insert and Edit Rows and Save this to the Database.
In My Testproject i Have an Entity Model with Name 'TestDB' it Only have one Entity 'Adresse' With Fields ID, Name, Street, ZIP, Town
My Code now looks like this: (There is only Xaml Code, no Code Behind or other Classes):
I Can Insert Rows with the Insert Button.
The Save Button is Enabled after Editing, after Clicking it, it goes Disabled, but no Changes are saved to the Database.
<Window x:Class="RadControlsEFTest.MainWindow"
                xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
        xmlns:local="clr-namespace:RadControlsEFTest"
                Title="MainWindow" Height="500" Width="800" WindowStartupLocation="CenterScreen">
        <Grid>
    <Grid.RowDefinitions>
      <RowDefinition Height="Auto"/>
      <RowDefinition Height="Auto"/>
    </Grid.RowDefinitions>
      <telerik:RadEntityFrameworkDataSource Name="AdressDataSource" QueryName="Adresse">
      <telerik:RadEntityFrameworkDataSource.ObjectContext>
        <local:TestDBEntities/>
      </telerik:RadEntityFrameworkDataSource.ObjectContext>
    </telerik:RadEntityFrameworkDataSource>
    <StackPanel Orientation="Horizontal" Background="LightBlue">
      <telerik:RadButton Content="Save" Width="70" Margin="5" Command="telerik:RadGridViewCommands.CommitEdit" CommandTarget="{Binding ElementName=RadGridView}" />
      <telerik:RadButton Content="Insert" Width="70" Margin="5" Command="telerik:RadGridViewCommands.BeginInsert" CommandTarget="{Binding ElementName=RadGridView}" />
    </StackPanel>
    <telerik:RadGridView Name="RadGridView" Grid.Row="1" ItemsSource="{Binding DataView, ElementName=AdressDataSource}"/>
        </Grid>
</Window>
Vlad
Telerik team
 answered on 05 Nov 2012
1 answer
130 views
 Hi.. I have a GridViewComboBox.. I need to fire an messagebox if the user selects a specific value.
How can I do this?
thanks again


      <telerik:GridViewComboBoxColumn x:Name="cmbCategory" Header="Contact Category" DataMemberBinding="{Binding CallActivity_category_Id}" Width="140" DisplayMemberPath="CallActivity_category_title" telerik:TextSearch.TextPath="CallActivity_category_title" 
                                        SelectedValueMemberPath="CallActivity_category_Id" />

Yoan
Telerik team
 answered on 05 Nov 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
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?