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

[Solved] update/re-calculate ontextchanged

2 Answers 119 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Patric Svensson
Top achievements
Rank 1
Patric Svensson asked on 04 Aug 2009, 07:59 AM
I'm using a rad grid with 2 rows and the following columns { 2010,2011,2012,2013,2014 }, each column has a Sum Aggregate displayed in the footer and the default mode is edit. Whenever a field (input) value is changed (just edited, without clicking save or cancel) i want to automatically re-calculate the sum's either using javascript or code-behind, however i can not find any event to handle this.

I'd also like to know if there is any possibility to get a running value* in the footer instead of a simple sum.

*running value = adding the sum from the previous year, to the current/next and so on.

2 Answers, 1 is accepted

Sort by
0
Patric Svensson
Top achievements
Rank 1
answered on 05 Aug 2009, 07:03 AM
bump
0
Veli
Telerik team
answered on 07 Aug 2009, 07:06 AM
Hi Patric,

By default, RadGrid does not support dynamic update on textbox blur. You will need to implement it manually. You can find attached a small web site I have created to demonstrate the server-side approach. I use RadGrid's and RadNumericTextBox's client-side API to get the updated value and update RadGrid's item, posting back to the server.

The examples also demonstrate how I save my last focused item so that I can focus it back ot page load, thus preserving the UI experience consistent.

All this can also be implement exclusively on the client, but make sure that RadGrid does not persist data edited on the client by itself, so you will need to update your data source at some point.

Greetings,
Veli
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Patric Svensson
Top achievements
Rank 1
Answers by
Patric Svensson
Top achievements
Rank 1
Veli
Telerik team
Share this question
or