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

Get edited cell value in JS

1 Answer 76 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Wojciech
Top achievements
Rank 1
Wojciech asked on 30 Aug 2011, 06:42 PM
Hello,

In my RadGrid all my items are always in edit mode; I use gridtemplatecolumn with radtextbox for editing. I want to get values of whole columns and sum it up, to show user new sum of the column in label outside radgrid, after any cell is changed - i use onblur function. I ve tried to use dataItem.getDataKeyValue("column_name") but it returns original values, not the ones after edit. Any suggestions on how can i do it in javascript?

1 Answer, 1 is accepted

Sort by
0
Accepted
Marin
Telerik team
answered on 02 Sep 2011, 08:00 AM
Hi Wojciech,

 You should get the new value from the RadTextBox in the onblur event and add it to a global variable to show in the label. The approach is similar to the one shown in this online demo, although there the result is inside the grid. 

Greetings,
Marin
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
Grid
Asked by
Wojciech
Top achievements
Rank 1
Answers by
Marin
Telerik team
Share this question
or