Edit/Delete buttons in toolbar, not at each row

4 posts, 0 answers
  1. Brad
    Brad avatar
    13 posts
    Member since:
    Mar 2016

    Posted 09 Mar Link to this post

    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

     

  2. Venelin
    Admin
    Venelin avatar
    352 posts

    Posted 11 Mar Link to this post

    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
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Brad
    Brad avatar
    13 posts
    Member since:
    Mar 2016

    Posted 14 Mar in reply to Venelin Link to this post

    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

     

  5. Venelin
    Admin
    Venelin avatar
    352 posts

    Posted 15 Mar Link to this post

    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
Back to Top
UI for ASP.NET MVC is VS 2017 Ready