Telerik Forums
UI for WPF Forum
6 answers
436 views
There appears to be an issue with Aggregate Functions in GroupFooters not getting updated until you leave the row.  I read this post about it that said it should be fixed but I am still not seeing the issue fixed in version 2012.1.215.  

This is what I did.  I created a new project and added a RadGridView.  Added a couple of columns that are bound to my data.  So that when I open the application it looks like screenshot1.

I then drag column Chud2 up into the Group Panel so it looks like screenshot2.

I then edit any field in column 1 and tab to column 2 and the Total: Aggregate for column 1 does not get updated as shown in screenshot3.

If I hit my Enter key or click to another row then the Total: Aggregate for column 1 gets updated as shown in screenshot4.

I have tried hooking up to the Grid's CellEditEnded event as recommended in other posts and calling the CalculateAggregates() method there but that does not solve the problem either.

My .xaml code is as follows:

<Window x:Class="RadControlsWpfApp6.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"
                Title="MainWindow" Height="350" Width="525">
        <Grid>
        <telerik:RadGridView x:Name="radGridView"
                             AutoGenerateColumns="False"
                             ShowGroupFooters="True"
                             CellEditEnded="radGridView_CellEditEnded">
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn x:Name="_colChud"
                                            UniqueName="Chud"
                                            DataMemberBinding="{Binding Chud}">
                    <telerik:GridViewDataColumn.AggregateFunctions>
                        <telerik:SumFunction Caption="Total: " />
                    </telerik:GridViewDataColumn.AggregateFunctions>
                </telerik:GridViewDataColumn>
                    <telerik:GridViewDataColumn x:Name="_colChud2"
                                            UniqueName="Chud2"
                                            DataMemberBinding="{Binding Chud2}">
                    <telerik:GridViewDataColumn.AggregateFunctions>
                        <telerik:SumFunction Caption="Total: " />
                    </telerik:GridViewDataColumn.AggregateFunctions>
                </telerik:GridViewDataColumn>
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>
    </Grid>
</Window>

And my code behind is as follows:

namespace RadControlsWpfApp6
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
 
            radGridView.ItemsSource = Data.GetData();
        }
 
        private void radGridView_CellEditEnded(object sender, Telerik.Windows.Controls.GridViewCellEditEndedEventArgs e)
        {
            radGridView.CalculateAggregates();
        }
    }
 
    public class Data
    {
        private double _chud;
        public double Chud
        {
            get { return _chud; }
            set { _chud = value; }
        }
 
        private double _chud2;
        public double Chud2
        {
            get { return _chud2; }
            set { _chud2 = value; }
        }
 
        public static ObservableCollection<Data> GetData()
        {
            ObservableCollection<Data> data = new ObservableCollection<Data>();
 
            Data d = new Data() { Chud = 1, Chud2 = 1 };
            data.Add(d);
 
            d = new Data() { Chud = 2, Chud2 = 1 };
            data.Add(d);
 
            d = new Data() { Chud = 3, Chud2 = 1 };
            data.Add(d);
 
            d = new Data() { Chud = 4, Chud2 = 1 };
            data.Add(d);
 
            return data;
        }
    }
}

Am I missing something that would make the Group Footers update their Aggregates when you tab out of a cell?

Thanks,
Chad
Raymond
Top achievements
Rank 1
 answered on 08 Jan 2014
7 answers
215 views
I used an entity with IEditableObject, IDataErrorInfo now when ever an error happens and the validation kicks in marking the controller with the red marker also this error is thrown, any ideas why, the proram runs fine but with this error am using Themes.Implicit copyed them into th project and refrenced the assemblies of Binaries.NoXaml

System.Windows.Data Error: 4 : Cannot find source for binding with reference 'ElementName=Holder'. BindingExpression:(no path); DataItem=null; target element is 'ToolTip' (Name='PART_ToolTip'); target property is 'PlacementTarget' (type 'UIElement')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'ElementName=Holder'. BindingExpression:Path=AdornedElement.(0)[0].ErrorContent; DataItem=null; target element is 'ToolTip' (Name='PART_ToolTip'); target property is 'Content' (type 'Object')


thank you
Vanya Pavlova
Telerik team
 answered on 07 Jan 2014
1 answer
104 views
Hi,

I have encountered a strange behavior if i put AutocompleteBox inside a scrollviewer, 

when the dropdown is open and i perform a scroll on the parent scrollviewer, the dropdown is disconnected with the textbox, it seems that the dropdown doesnot scroll together with textbox. 

Please see the attached image
Yana
Telerik team
 answered on 07 Jan 2014
6 answers
312 views
I tried to bind ClearCommand with my own command, but the handling method never fires, instead it seems the original handler still fires and clears the input. Does binding works on ClearCommand?

Here is my view model code:
public DelegateCommand ClearCriteriaCommand { get; set; }

and setup:
ClearCriteriaCommand = new DelegateCommand(o => ClearCriteria());

here is the binding:
<RadMaskedTextInput Name="txtSearchField" Value="{Binding Path=SearchCriteria, Mode=TwoWay}" ClearCommand="{Binding Path=ClearCriteriaCommand}" AcceptsReturn="False" EmptyContent="Enter Search Term">
Petar Mladenov
Telerik team
 answered on 07 Jan 2014
1 answer
90 views
Hello,
create a new WPF application, add references to Telerik.Windows.Controls and Telerik.Windows.Themes.Office2013.

Then, replace App.xaml with:
<Application
  x:Class="WpfApplication1.App"
  StartupUri="MainWindow.xaml">
 
  <Application.Resources>
    <ResourceDictionary>
 
      <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/System.Windows.xaml"/>
        <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.xaml"/>
      </ResourceDictionary.MergedDictionaries>
 
    <Style x:Name="MyBorderStyle" TargetType="Border">
      <Setter Property="BorderBrush"     Value="Black" />
      <Setter Property="BorderThickness" Value="1" />
    </Style>
 
    </ResourceDictionary>
  </Application.Resources>
 
</Application>

Replace MainWindow.xaml with:
<Window
  x:Class="WpfApplication1.MainWindow"
  Title="MainWindow" Height="350" Width="525">
  <tk:RadListBox Margin="10">
    <tk:RadListBoxItem Content="One" />
    <tk:RadListBoxItem Content="Two" />
    <tk:RadListBoxItem Content="Three" />
  </tk:RadListBox>
</Window>

Run the application: the list box items have a black border around them, as defined in the border style. But that's wrong because this is not a default style, so it should not be applied in this case.

Patrick
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 07 Jan 2014
1 answer
59 views
Hi, I'm using the latest 2013.3 1204 version and I noticed that the call order of the RadPane events has been changed.
In the previous versions, I suppose that the ActivePaneChanged event was first fired and then the Activated event, but in the latest version this order was changed. Am I right? I want to know if this change will be consistent in the upcoming versions as this will cause a substantial change in my application. Thanks!
George
Telerik team
 answered on 07 Jan 2014
6 answers
470 views
Hi,

I'm using the lates version of Telerik and I would like to change the theme to Office2013 of my usercontrol in the constructor so how I can achieve this ?!?

Thank's
Alain
Christie Admin
Top achievements
Rank 1
 answered on 06 Jan 2014
1 answer
169 views
I have an application base on ArcGIS API. Now I want to use rad control, as you know ArcGIS MapPoint used geometry , but I see radmap used geography. How can I convert ArcGIS MapPoint to RadMap Location?

Thanks!
Tsvetie
Telerik team
 answered on 06 Jan 2014
8 answers
181 views
Hi,

i'm using radscheduleview and appointments with custom resources:

private IEnumerable<IResource> resourcesStatus;
 
this.resourcesStatus = new List<IResource>
{
      new Resource(Klassen.Language.GetTextbyCode("Erfasst"), "Status"),
      new Resource(Klassen.Language.GetTextbyCode("Aktiv"), "Status"),
      new Resource(Klassen.Language.GetTextbyCode("Fertig"), "Status"),
};
 
ResourceType resourceTypeStatus = new ResourceType("Status");
resourceTypeStatus.Resources.AddRange(this.resourcesStatus);
 
this.resourceTypes.Add(resourceTypeStatus);

How do i add a selection change event for the resource (If i change the resourceStatus in the AppointmentDialiog, i want to do something)?

Thanks a lot
Best Regards

Merry X-MAS
Yana
Telerik team
 answered on 06 Jan 2014
2 answers
186 views
Hello,

i have only one ToolBar in my View and some items in it. The task is to reorder the items with Drag&Drop function.
Unfortunately i can not found a attribute of RadToolBar to implement it. With telerik DragDropManager works the ToolBar-reorder neither.

Have i missed something or it is no easy to implement it?

Any help will be thankful.

Ivan
Ivan
Top achievements
Rank 1
 answered on 03 Jan 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?