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

changed cell in change event

3 Answers 110 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ro
Top achievements
Rank 1
Ro asked on 27 May 2015, 06:18 AM

Hi,

I'm using the change event, so after I change any cell in the grid I'm getting to this event.

How can I know which cell I changed?

Thanks,
Yael

3 Answers, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 27 May 2015, 03:47 PM

Hello Ro,

If you are referring to retrieving the currently selected cell, you could use the select method of the Grid.
E.g.

function onChange(e){
   var selected = this.select();
}

Regards,
Dimiter Madjarov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Ro
Top achievements
Rank 1
answered on 28 May 2015, 07:03 AM

Hi,

this.select() return all the row,

and I don't know which cell caused this event.

0
Dimiter Madjarov
Telerik team
answered on 28 May 2015, 08:15 AM

Hello Ro,

If the selectable mode of the Grid is set to row, it is expected for the select method to only return the selected rows, not cells. There is no out of the box way to achieve this. A possible solution would be switch the mode to cell selection.

Regards,
Dimiter Madjarov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Ro
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Ro
Top achievements
Rank 1
Share this question
or