This is a migrated thread and some comments may be shown as answers.

Rad GridView column total not updating on data update

3 Answers 28 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Doug
Top achievements
Rank 1
Doug asked on 03 Dec 2013, 01:59 PM
Hello,

Is there a way to refresh the column footer when the data in the grid is changed by an outside source? For example, if there was a details drawer that opens on the gridline and has a text box that is bound to the same data as the parent grid cell?

3 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 03 Dec 2013, 04:31 PM
Hi,

You can invoke the RadGridView.CalculateAggregates() method to achieve your goal.

Regards,
Didie
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Doug
Top achievements
Rank 1
answered on 03 Dec 2013, 05:24 PM
Where would I invoke this method? 
0
Dimitrina
Telerik team
answered on 04 Dec 2013, 09:08 AM
Hi,

You should invoke it after the data in the grid is changed outside it.

For example you can subscribe for the LostFocus event of the TextBox and update the aggregates when you click outside of the TextBox.
For example:
private void TextBox_LostFocus(object sender, RoutedEventArgs e)
{
    this.Dispatcher.BeginInvoke(new Action(() =>
    {
 
    this.clubsGrid.Rebind();
    }
    ));
}

Then the aggregate result will be updated.

Regards,
Didie
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
GridView
Asked by
Doug
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Doug
Top achievements
Rank 1
Share this question
or