CellClick not always raised

4 posts, 1 answers
  1. Chris Kirkman
    Chris Kirkman avatar
    101 posts
    Member since:
    Apr 2010

    Posted 24 Jan 2018 Link to this post

    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.
  2. Chris Kirkman
    Chris Kirkman avatar
    101 posts
    Member since:
    Apr 2010

    Posted 24 Jan 2018 Link to this post

    I really only needed to know which row is selected...so, got around it listening to "CurrentRowChanging" event.
  3. Answer
    Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    3089 posts

    Posted 25 Jan 2018 Link to this post

    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.
  4. Chris Kirkman
    Chris Kirkman avatar
    101 posts
    Member since:
    Apr 2010

    Posted 25 Jan 2018 in reply to Dess | Tech Support Engineer, Sr. Link to this post

    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.
Back to Top