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

Edit/Delete buttons in toolbar, not at each row

3 Answers 926 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Brad
Top achievements
Rank 1
Brad asked on 09 Mar 2016, 06:20 PM

Having the edit/delete buttons at each row is very space inefficient. I would like to be able to:

  1. Be able to select a row.
  2. Click the Edit or Delete buttons which are at the top (or bottom) of the grid next to the Add New button.
  3. Have check boxes at each row so I can multi-select and delete more than one row at a time.

Does anyone have sample code showing this working before I have to dig in an re-invent this wheel myself?

Thanks,

Brad

 

3 Answers, 1 is accepted

Sort by
0
Venelin
Telerik team
answered on 11 Mar 2016, 08:35 AM
Hi Brad,

These functionalities are already documented/discussed in forums separately and it's almost trivial to combine them all.

1. Row selection with checkbox: http://docs.telerik.com/kendo-ui/controls/data-management/grid/how-to/Selection/grid-selection-checkbox
2. Delete with external button: http://www.telerik.com/forums/delete-muliple-rows-having-checkbox-and-using-common-delete-button-
3. see 1 and 2

The required APIs are explained further here: 
http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#methods-editRow
http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#methods-removeRow

Regards,
Venelin
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Brad
Top achievements
Rank 1
answered on 14 Mar 2016, 06:37 PM

I see. I was trying to search on putting the edit/delete buttons in the toolbar and finding nothing. As to being able to edit a row from an external button I found this which appears promising. I will post back my full code for others when I get it working.

- Brad

 

0
Venelin
Telerik team
answered on 15 Mar 2016, 09:37 AM
Hi Brad,

In order to put your own content in the toolbar you can use toolbar template: 
http://demos.telerik.com/kendo-ui/grid/toolbar-template
http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#configuration-toolbar

Regards,
Venelin
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Brad
Top achievements
Rank 1
Answers by
Venelin
Telerik team
Brad
Top achievements
Rank 1
Share this question
or