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

Check If Row Is Already Selected?

1 Answer 149 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kaleb
Top achievements
Rank 1
Kaleb asked on 17 Jul 2014, 01:31 PM
I'm sending a request to a web service when a row is first selected. That request binds another grid and, depending on which row you select and how big the data set is, it sometimes takes a second to bind. I'm ok with that happening when it's first selected. But I don't want that to happen every time I click on it because I have a context menu attached to it.

Is there a way to know if the row is already selected when it's clicked? I would be able to cancel the server call on change in that scenario and make this work beautifully. I can't seem to find any documentation on it, though.

1 Answer, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 18 Jul 2014, 08:51 AM
Hi Kaleb,


The information whether the row has been previously selected is not available out of the box. I would suggest storing a collection in a JavaScript variable with the previously selected rows and compare them with the current ones in the change event handler of the Grid.

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
Kaleb
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Share this question
or