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

CellValueChanged not firing

6 Answers 905 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Richard Slade
Top achievements
Rank 2
Richard Slade asked on 14 Jul 2009, 11:41 AM
Hello,

The CellValueChanged event never seems to fire in the GridView.

I have an event handler on this event, but it never seems to be picked up

Richard

6 Answers, 1 is accepted

Sort by
0
Boryana
Telerik team
answered on 14 Jul 2009, 04:33 PM
Hi Richard Slade,

Thank you for contacting us. CellValueChanged event is triggered when the user enters a specified value in the cell. Please, note that this typically occurs when a cell loses focus. This implies that the CellValueChanged event will be triggered if the user has changed the value of the cell and has left the cell, changing the focus to another control.

I guess that instead of CellValueChanged, you need an event that triggers whenever the value of the cell is modified. In this case you should handle ValueChanging event. For more information, please refer to this article.

I hope this is helpful. If you have further issues, do not hesitate to contact me back.

 

Regards,
Boryana
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.
0
Richard Slade
Top achievements
Rank 2
answered on 15 Jul 2009, 07:58 AM
Ok, thanks Boryana,
Slightly confusing naming convention, but I'll give that a go. Thanks for the reply.
Richard
0
JigneshGN
Top achievements
Rank 2
answered on 18 Jan 2010, 04:50 AM
Thanks Boryana,

0
MP
Top achievements
Rank 1
answered on 15 Oct 2010, 04:27 PM
Dear Telerik,

What is the difference between ValueChanged and CellValueChanged events?

Regards,
MP
0
Emanuel Varga
Top achievements
Rank 1
answered on 15 Oct 2010, 05:02 PM
Hello MP,

Basically, the ValueChanged event is raised after each cell value change, even if that change is not yet applied to the grid.
The CellValueChanged event is fired just when the value of a cell has been changed.

Please take a look at this help article related to the Data Editing Event Sequence.

Hope this helps, if you have any other questions or comments, please let me know,

Best Regards,
Emanuel Varga
0
Jack
Telerik team
answered on 15 Oct 2010, 05:03 PM
Hello MP,

Thank you for this question. The ValueChanged event is fires when the active editor changes its value. The CellValueChanged event instead fires after closing the editor and persisting the value in the data layer. There is one exception, the ValueChanged event fires when there is no active editor and the cell value is changed programmaticaly. Find more information regarding editor related events in our online help

Should you have any further questions, please do not hesitate to ask.

Sincerely yours, Jack
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Richard Slade
Top achievements
Rank 2
Answers by
Boryana
Telerik team
Richard Slade
Top achievements
Rank 2
JigneshGN
Top achievements
Rank 2
MP
Top achievements
Rank 1
Emanuel Varga
Top achievements
Rank 1
Jack
Telerik team
Share this question
or