简体   繁体   中英

Get IDs of unselected rows in Kendo Grid

I'm completely stuck with this. I have a kendo grid where all rows are selected by "select all" button and some rows can be unselected. So I need to get exactly the IDs of unselected rows.

There is an easy way to get selected rows as grid.select(), but could there be a way to distinguish unselected ones? Any help is appreciated.

filter rows based on css class 'k-state-selected'. Rows without this class are not selected for sure :-)

$("#xyzGrid > .k-grid-content tr").not($(".k-state-selected"))

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM