From what I understand from your question, you are utilizing the Kendo UI for Angular Grid and are looking for an approach that would allow you to hide the Remove/Delete button from the Grid based on the number of records that are being selected. Please, correct me if I misunderstood you.
One possible approach to achieve the desired functionality would be to utilize the Angular's structural directive ngIf and thus hide the specific element(in this case the Remove/Delete button) based on a custom condition.
In case you are looking for an approach that would allow you to access the currently selected items, I would suggest checking out our built-in SelectionDirective and binding its selectedKeys property to store the indices of the selected items.
I hope this answers your question. Let me know if you need additional assistance with this case.
Hi Lino,
Thank you very much for the details provided.
From what I understand from your question, you are utilizing the Kendo UI for Angular Grid and are looking for an approach that would allow you to hide the Remove/Delete button from the Grid based on the number of records that are being selected. Please, correct me if I misunderstood you.
One possible approach to achieve the desired functionality would be to utilize the Angular's structural directive ngIf and thus hide the specific element(in this case the Remove/Delete button) based on a custom condition.
In case you are looking for an approach that would allow you to access the currently selected items, I would suggest checking out our built-in SelectionDirective and binding its selectedKeys property to store the indices of the selected items.
I hope this answers your question. Let me know if you need additional assistance with this case.
Regards,Georgi
Progress Telerik
Thanks for your feedback