Telerik Forums
UI for WPF Forum
6 answers
222 views
Hi,

I am exporting RadGridView data to excell.

I wanted to know, how to export data of aggregate function in excell sheet.

My XAML page is:

<telerik:GridViewDataColumn Header="Investment Category Name" DataMemberBinding="{Binding InvestmentCategoryName}" IsVisible="False"   />
                <telerik:GridViewDataColumn Header="Asset Class Name" DataMemberBinding="{Binding AssetClassName}"  IsVisible="False"  />
                <telerik:GridViewDataColumn Header="Sbu" DataMemberBinding="{Binding SbuName}" Width="125" TextWrapping="Wrap"/>
                <telerik:GridViewDataColumn Header="Total Value" DataMemberBinding="{Binding TotalValue, StringFormat={}{0:c}}" HeaderTextAlignment="Right" TextAlignment="Right" Width="90" TextWrapping="Wrap">
                    <telerik:GridViewDataColumn.AggregateFunctions>
                        <telerik:SumFunction Caption="Total :" ResultFormatString="{}{0:c}" />
                    </telerik:GridViewDataColumn.AggregateFunctions>
                </telerik:GridViewDataColumn>
                <telerik:GridViewDataColumn Header="Target Min" DataMemberBinding="{Binding TargetMin, StringFormat={}{0:n2}}"  HeaderTextAlignment="Right" TextAlignment="Right" Width="90" TextWrapping="Wrap"/>
                <telerik:GridViewDataColumn Header="Target Max" DataMemberBinding="{Binding TargetMax, StringFormat={}{0:n2}}"  HeaderTextAlignment="Right" TextAlignment="Right" Width="90" TextWrapping="Wrap"/>
                <telerik:GridViewDataColumn Header="Target Total" DataMemberBinding="{Binding TargetTotal, StringFormat={}{0:n2}}"  HeaderTextAlignment="Right" TextAlignment="Right" Width="90" TextWrapping="Wrap"/>
                <telerik:GridViewDataColumn Header="Total Actual" DataMemberBinding="{Binding TotalActual, StringFormat={}{0:n2}}"  HeaderTextAlignment="Right" TextAlignment="Right" Width="90" TextWrapping="Wrap"/>
                <telerik:GridViewDataColumn Header="Variance" DataMemberBinding="{Binding Variance, StringFormat={}{0:n2}}"  HeaderTextAlignment="Right" TextAlignment="Right" Width="90" TextWrapping="Wrap">


Please, let me know any quick solution to this.

Regards,
Hirak
hirak
Top achievements
Rank 1
 answered on 26 Apr 2011
1 answer
466 views
Hello,
I've googled a bit around but was not able to find an answer.... do WPF enabled GPU acceleration for normal UI Controls as GridViews? or just for multimedia usercontrols? Thanks

Paolo
Milan
Telerik team
 answered on 26 Apr 2011
1 answer
106 views
Hello,

my ItemsSouce is a Dictonary (Dictionary<DateTime, Dictionary<Enum, long>).

With this i want display data by a StackedBar100. My DateTime should be the XCategory and the nested Dictionary the stacked values. My ItemsSource is binded via MVVM.

How can i bind this?

Thanks in advance

Ralf
Vladimir Milev
Telerik team
 answered on 25 Apr 2011
10 answers
122 views
Hi all,

My client requirement is make filter behavior as in winForm( there is one row under column header. there is one textbox and filter button in each column row)  for some RadGridView in WPF app. Need still use wpf's RadGridview not host winForm's RadGridview.
 
If there is a property to set or I should custom RadGridView ? How do I implement it?  Thanks


Good luck
zacky
Vanya Pavlova
Telerik team
 answered on 25 Apr 2011
1 answer
83 views
I have a sparkline bound to an observable collection created from entity framework data

Y values used are a nullable double.

All works fine until a bound value is changed.

If value is say 12.5 and set to 14.7, works ok, spakline is updated
however
If value is changed from 12.5 to null and exception is thown - stack trace below

   at Telerik.Windows.Controls.Sparklines.DataPointsCollectionView.OnItemPropertyChanged(Object sender, PropertyChangedEventArgs e) in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\DataVisualization\Sparklines\Data\DataPointsCollectionView.cs:line 251
   at System.ComponentModel.PropertyChangedEventHandler.Invoke(Object sender, PropertyChangedEventArgs e)
   at System.Data.Objects.DataClasses.StructuralObject.OnPropertyChanged(String property)
   at System.Data.Objects.DataClasses.EntityObject.ReportPropertyChanged(String property)
   at RatifTest2.Data.SampleData.set_NO(Nullable`1 value) in C:\DEV\AQ Modernisation\RatifTest2\RatifTest2\Data\RatModel.Designer.cs:line 220

If the sparkline is taken out of the equation and the data bound to say a RadGridView, setting value to null is handled correctly
Vladimir Milev
Telerik team
 answered on 25 Apr 2011
1 answer
131 views
How to add icon in dropdown menu?
Konstantina
Telerik team
 answered on 25 Apr 2011
4 answers
99 views
Hi,
From your WPF Demo \ "Data Virtualization\ First Look"  (2011 - Q1 ),
I think there is bug behavior with the VirtualQueryableCollectionView if i try to filter with more than one field it's give me wrong result,
or if I apply filter in one field then cancel it and apply filter again with other field it's give me the first result.

any help?

Best regards,



mod
Top achievements
Rank 1
 answered on 23 Apr 2011
6 answers
243 views
I have RadGrid into RadExpander and grid's scrollbars don't work. I see them, but they are not active.
Here is my code, please tell me where my mistake is?
<telerik:RadExpander ExpandDirection="Left"   IsExpanded="True" HorizontalAlignment="Stretch" Name="radExpanderMainPosition">
 <telerik:RadGridView   Name="radGridPoisition_MainTable"   HorizontalAlignment="Stretch" CanUserFreezeColumns="False"   CanUserReorderColumns="False" ShowGroupFooters="False" ShowColumnFooters="False" ShowInsertRow="False" 
ScrollViewer.HorizontalScrollBarVisibility="Visible" 
ScrollViewer.VerticalScrollBarVisibility="Visible"  ScrollViewer.CanContentScroll="True" ></telerik:RadGridView>
</telerik:RadExpander>
Alena
Top achievements
Rank 1
 answered on 23 Apr 2011
5 answers
161 views
Hi Guys,

reffering to your WPF-Demo "Tree to Grid Drag": How can I prevent
a Drag-Operation from the GridView by dragging the Header instead of
the item?

The behavior makes no sense. In your corresponding Silverlight-Example
you can´t drag the Header.

Bye, Michael
Michael Storchmann
Top achievements
Rank 1
 answered on 22 Apr 2011
1 answer
126 views
Hi there,

I'm having a problems with the transitions in this particular scenario:
I want to change in code behind the Content of my RadTransitioncontrol, as well as the ContentTemplate and the Transition.
So i wrote the following code:

//Switch to TILE mode
if (layoutMode.Equals(SlideshowLayoutMode.Tile))
{
     this.RadTransitionControl_Root.Transition = this.switchModeTransition;
     this.RadTransitionControl_Root.ContentTemplate = (DataTemplate)this.Resources["ImageTemplateTile"];
     Binding tileBinding = new Binding("AllImages");
     this.RadTransitionControl_Root.SetBinding(RadTransitionControl.ContentProperty, tileBinding);
}
//Switch to SEQUENCE mode
else
{
     this.RadTransitionControl_Root.ContentTemplate = (DataTemplate)this.Resources["ImageTemplateSequence"];
     Binding sequenceBinding = new Binding("ImageSrc");
     this.RadTransitionControl_Root.SetBinding(RadTransitionControl.ContentProperty, sequenceBinding);
     this.RadTransitionControl_Root.Transition = this.sequenceTransition;
}

But the transition doesn't work in two cases:
1) The first time i change to TILE mode
2) Every time i change to TILE mode after a NotifyPropertyChanged of the Property "ImageSrc" happend.

Some help would be nice,
Thanks,
Ângelo Moreira.

Miroslav Nedyalkov
Telerik team
 answered on 22 Apr 2011
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
InlineAIAssistant
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?