Telerik Forums
UI for WPF Forum
3 answers
151 views
Hi,

I am using version 2012.3

I have a grid view which is autogenerating columns from a datatable. The reason I am using the RadGridView is so that the user can filter and/or sort with a minimum of hassle.

As part of the program, the user can delete rows from the table at any time. They can also add them back at a later date.

I have the add/remove working fine, basically using table.Rows.Remove(row) this triggers the AutoGeneratingColumn event for each column as the table basically reloads.

Where I am having trouble is when the user sorts or filters the data before removing a column. If the grid is sorted and you remove a column, the output shows "A first chance exception of type 'System.ArgumentException' occurred in System.Data.dll" and the entire grid becomes blank. It does not come back if you try adding the row back.

If the user has added a filter to the grid and removes a row, it looks like it worked. The data showing is whatever you had filtered already, minus that row. The problem is that it says that there is no filter, so you cannot remove the previous filter.

How do I change the data that the grid is bound to and have the sorting/filtering update at the same time?

Thank you,

Eli
Vlad
Telerik team
 answered on 06 Nov 2012
7 answers
250 views
Hello,

I have been using the RadGridView for a project and I am having an issue with custom templating and styling.  I have set up custom styles for the RadGridView, GridViewRows, and a few other controls.

The problem I am having is that my GridViewRow style is not being applied to the "Click here to add new row" row, nor the editable row that appears when you click it.

To further compound everyone's confusion, when I create a basic custom style and apply it to the "NewRowStyle" property, it messes up the way the normal rows as well as the headers of the grid display.


Am I missing a step on applying custom templates and styles?

Thank you.



(For further information, I am using the latest Q3 trial release for WPF.  Development is in Visual Studio 2010).
David
Top achievements
Rank 1
 answered on 06 Nov 2012
4 answers
300 views
Hi,

I know that the default WPF combobox has the same behavior - but maybe RadCombobox can do it better.
What I want is a ComboBox where the user can select a single item from the dropdown.
This works so far - but when hovering an item with the mouse the user gets lost because the Selected Item is no longer highlighted.

Although I could create such a combobox with a togglebutton and a listbox in a popup I would prefer to use RadComboBox.

Is there a way to achieve this (easily)?

Thanks
Manfred
ManniAT
Top achievements
Rank 2
 answered on 05 Nov 2012
8 answers
246 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
281 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
149 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
251 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
181 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
74 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
74 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?