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

CellClick not always raised

3 Answers 41 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Chris Kirkman
Top achievements
Rank 1
Chris Kirkman asked on 24 Jan 2018, 03:48 PM
Don't know how else to describe it.  There doesn't seem to be any good explanation.  For some rows, the first time I click a cell in the row the event is raised.  And then on subsequent clicks on those rows the event is never raised.

3 Answers, 1 is accepted

Sort by
0
Chris Kirkman
Top achievements
Rank 1
answered on 24 Jan 2018, 05:43 PM
I really only needed to know which row is selected...so, got around it listening to "CurrentRowChanging" event.
0
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 25 Jan 2018, 12:30 PM
Hello, Chris,

Thank you for writing.  

I am glad that the problem you were facing is now resolved. Let me explain the behavior of RadGridView. When you click a cell for the first time, this cell gets selected and the CellClick event is fired. If you click the cell for the second time the editor is being activated. Once the editor is active each next cell click will activate the editor for the respective cell. As a result the CellClick event won't be fired. Using the CurrentRowChanged event is a suitable way for handling when a different row i selected. However, if you want to get the CellClick event fired each time you click a cell, set the BeginEditMode property to RadGridViewBeginEditMode.BeginEditProgrammatically. Thus, it would be necessary to call the RadGridView.BeginEdit method each time you want to activate the editor.

I hope this information helps. Should you have further questions I would be glad to help. 
 
 Regards,
Dess
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Chris Kirkman
Top achievements
Rank 1
answered on 25 Jan 2018, 02:10 PM
Thanks.  I just needed to know when the row changed.  It's a static list of items in the grid.  I simply make a decision to do something else when a row is selected.
Tags
GridView
Asked by
Chris Kirkman
Top achievements
Rank 1
Answers by
Chris Kirkman
Top achievements
Rank 1
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or