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

On-Change event issue, please help.

1 Answer 45 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Vincent
Top achievements
Rank 1
Iron
Vincent asked on 27 Mar 2020, 11:39 AM
when i select a row in grid. it fire change event, but I re-select the same row. the change event fire too. how can i prevent the change event when i select the same row?

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 01 Apr 2020, 09:13 AM

Hi Vincent,

By design, the Change event fires every time when a table row/cell in the grid is selected including the already selected row/cell. However, in the Change event handler, the currently selected row can be conditionally checked if is equal to the last selection using a global variable. For more information please refer to the following forum thread discussing this topic:

Let me know if you have any questions.

Regards,
Nikolay
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
Grid
Asked by
Vincent
Top achievements
Rank 1
Iron
Answers by
Nikolay
Telerik team
Share this question
or