Telerik Forums
UI for WPF Forum
2 answers
266 views
I'm trying to use the RadGridView AggregateFunctions. I've tested Count, Min and Max functions successfully. However, when I try using SumFunction or AverageFunction, nothing is displayed on the column footer (including the previously added Count, Min, Max functions).

I'm binding a DataTable to the grid from C# like this:

this.radGrid1.ItemsSource = dtData; 

This is the XAML for the GridView:

<telerikGrid:RadGridView  
            x:Name="radGrid1" 
            MultipleSelect="True"  
            AutoGenerateColumns="False" 
            ShowColumnFooters="True" ShowGroupFooters="True"
 
            <telerikGrid:RadGridView.Columns> 
                 
                <telerikGrid:GridViewDataColumn Header="AccountNo" DataMemberBinding="{Binding AccountNo}"
                    <telerikGrid:GridViewDataColumn.AggregateFunctions> 
                        <telerikData:CountFunction Caption="Count:" /> 
                    </telerikGrid:GridViewDataColumn.AggregateFunctions> 
                </telerikGrid:GridViewDataColumn> 
                 
                <telerikGrid:GridViewDataColumn Header="InvestmentCost" DataMemberBinding="{Binding InvestmentCost}" DataFormatString="{}{0:c}" TextAlignment="Right"
                    <telerikGrid:GridViewDataColumn.AggregateFunctions> 
                        <telerikData:SumFunction ResultFormatString="{}{0:c}" SourceField="InvestmentCost" /> 
                        <telerikData:MinFunction ResultFormatString="{}{0:c}" SourceField="InvestmentCost" /> 
                        <telerikData:MaxFunction ResultFormatString="{}{0:c}" SourceField="InvestmentCost" /> 
                    </telerikGrid:GridViewDataColumn.AggregateFunctions> 
                </telerikGrid:GridViewDataColumn> 
                 
            </telerikGrid:RadGridView.Columns> 
        </telerikGrid:RadGridView> 

Edit: 
DataType for InvestmentCost column in dtData is Decimal.
I'm using RadControls for WPF Q3 2009 SP1
Jeffrey
Top achievements
Rank 1
 answered on 30 Dec 2009
1 answer
58 views
hello i have the rad gridview in my project and i need too diffrent color for rows

for example 
1 row     Blue
2 row   yello

3 row     Blue
4 row   yello

5 row     Blue
6 row   yello

and....
Missing User
 answered on 29 Dec 2009
3 answers
237 views
I am looking for a way to make the gridview go directly into edit mode when the cell is clicked on.  I also need the up and down arrow to move the selected row/cell
Stefan Dobrev
Telerik team
 answered on 29 Dec 2009
4 answers
174 views
Hello, from what I understood based on the previous threads here, the DragEnter, DragOver, Drop... events from
Ziad
Top achievements
Rank 1
 answered on 29 Dec 2009
3 answers
377 views
I don't know if it is something we are doing wrong or if it the control itself.

When you open several nodes the process hits levels of 40%-50%.

I ran the profiler while viewing the TreeView. It shows that the node expanders are continually refreshing.

I'm deducting that the loading animation begins but does not stop. It looks like the screen is refreshing even in when the animation's visibility is not visible. I don't know if it is a fact that the screen is trying to refresh because of the loading animation, but it seems like it.

In the template, the trigger is defined:

<Trigger Property="IsLoadingOnDemand" Value="True"
                    <Trigger.EnterActions> 
                        <BeginStoryboard> 
                            <Storyboard> 
                                <DoubleAnimation Duration="00:00:01" RepeatBehavior="Forever" Storyboard.TargetName="LoadingVisualAngleTransform" Storyboard.TargetProperty="Angle" From="0" To="359"/> 
                            </Storyboard> 
                        </BeginStoryboard> 
                    </Trigger.EnterActions> 
                     
                    <Setter Property="Visibility" TargetName="LoadingVisual" Value="Visible"/> 
                    <Setter Property="Visibility" TargetName="Expander" Value="Collapsed"/> 
                </Trigger> 

If what I stated above is true, wouldn't you need to add and ExitAction like:
<Trigger Property="IsLoadingOnDemand" Value="True"
                    <Trigger.EnterActions> 
                        <BeginStoryboard> 
                            <Storyboard x:Name="NodeLoadingStoryboard"
                                <DoubleAnimation Duration="00:00:01" RepeatBehavior="Forever" Storyboard.TargetName="LoadingVisualAngleTransform" Storyboard.TargetProperty="Angle" From="0" To="359"/> 
                            </Storyboard> 
                        </BeginStoryboard> 
                    </Trigger.EnterActions> 
                     
                    <Trigger.ExitActions> 
                        <StopStoryboard BeginStoryboardName="NodeLoadingStoryboard" /> 
                    </Trigger.ExitActions> 
                     
                    <Setter Property="Visibility" TargetName="LoadingVisual" Value="Visible"/> 
                    <Setter Property="Visibility" TargetName="Expander" Value="Collapsed"/> 
                </Trigger> 



Have you seen this behavior? Am I missing something?

Thanks


Miroslav
Telerik team
 answered on 28 Dec 2009
3 answers
293 views
I have a stacked area chart set up with multiple series. The source of the data is an observable collection. When I add items to the observable collection, the chart does not update. When I bind the data directly without using multiple series, it updates fine. How can I get this working?

        private ObservableCollection<ChartPoint> _kw1;
        private ObservableCollection<ChartPoint> _kw2;

        private Timer _timer;

        void Window1_Loaded(object sender, RoutedEventArgs e)
        {
            _timer = new Timer(TimerCallback, null,TimeSpan.Zero, TimeSpan.FromSeconds(1));

            RadChart1.DefaultView.ChartArea.AxisX.IsDateTime = true;

            _kw1 = new ObservableCollection<ChartPoint>();

            _kw2 = new ObservableCollection<ChartPoint>();

            var seriesList = new List<ObservableCollection<ChartPoint>> { _kw1, _kw2 };

            var lineDefinition1 = new StackedAreaSeriesDefinition();
            var lineDefinition2 = new StackedAreaSeriesDefinition();

            var series1 = new SeriesMapping { LegendLabel = "Paint Line", CollectionIndex = 0, SeriesDefinition = lineDefinition1 };
            series1.ItemMappings.Add(new ItemMapping { DataPointMember = DataPointMember.YValue, FieldName = "Kw" });
            series1.ItemMappings.Add(new ItemMapping { DataPointMember = DataPointMember.XValue, FieldName = "Timestamp" });

            var series2 = new SeriesMapping { LegendLabel = "Fan 1", CollectionIndex = 1, SeriesDefinition = lineDefinition2 };
            series2.ItemMappings.Add(new ItemMapping { DataPointMember = DataPointMember.YValue, FieldName = "Kw" });
            series2.ItemMappings.Add(new ItemMapping { DataPointMember = DataPointMember.XValue, FieldName = "Timestamp" });

            var seriesMappings = new SeriesMappingCollection {series1, series2};

            RadChart1.SeriesMappings = seriesMappings;
            RadChart1.ItemsSource = seriesList;
        }

        private void TimerCallback(object o)
        {
            Debug.WriteLine("Updating...");

      if(!Dispatcher.CheckAccess())
      {
                Dispatcher.Invoke(new ThreadStart(() => TimerCallback(null)));
          return;
      }

            _kw1.Add(new ChartPoint{ Kw = (new Random()).Next(0, 10), Timestamp = DateTime.Now});
            _kw2.Add(new ChartPoint { Kw = (new Random()).Next(0, 10), Timestamp = DateTime.Now });
        }
Velin
Telerik team
 answered on 28 Dec 2009
4 answers
190 views
Are there any plans to port the RadRotator control (my favourite) to WPF or SilverLight? I'm relatively new to WPF, so maybe there's a methodology for easily re-creating this effect that I am not familiar with.
Art Kedzierski
Top achievements
Rank 2
 answered on 28 Dec 2009
1 answer
171 views
Hi,
I have docking panes and would like to resize the left panel panel when I resize the form. Now, it's only possible to resize the middle pane.

How can I accchieve that ?

kind regards,

Lorenz
Miroslav Nedyalkov
Telerik team
 answered on 28 Dec 2009
1 answer
91 views
Hello,

I'm using telerik 2008 (Version : 2008.3.1217.35, and I can't upgrade in telerik 2009 Q3), when I click on the Clear Filter function in filter expression, if my column contains no elements, I have an ArgumentNullException.

How can I catch this exception, or avoid it.

Thanks
Rossen Hristov
Telerik team
 answered on 28 Dec 2009
2 answers
332 views
I'd like to be able to select all content of the InputBox of a DatePicker, instead of simply putting the caret at the beggining. Is this possible ?

Thanks,

Ivan
Boyan
Telerik team
 answered on 28 Dec 2009
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
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
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?