I need to have buttons that will select all / unselect all rows in a Angular-Kendo Grid.
Is this possible? I have searched and have not come up with an answer.
any help is greatly appreciated.
thanks,
Richard
1 Answer, 1 is accepted
0
Alexander Valchev
Telerik team
answered on 24 Nov 2014, 04:08 PM
Hi Richard,
Thank you for contacting us.
Selecting an item is basically attaching a class. To select all rows you may use the following code:
var grid = $("#grid").getKendoGrid();
grid.items().addClass("k-state-selected");
To remove the selection:
var grid = $("#grid").getKendoGrid();
grid.items().removeClass("k-state-selected");
I hope this information will help.
Regards,
Alexander Valchev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!