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

Place command toolbar at bottom of the grid

13 Answers 1595 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jark Monster
Top achievements
Rank 1
Jark Monster asked on 10 Sep 2012, 12:37 PM
Is this a standard piece of functionality?

If so, how do you do it with a standard grid?

If it's not, are there currently any plans for it in future releases?

Thanks!

13 Answers, 1 is accepted

Sort by
0
Jark Monster
Top achievements
Rank 1
answered on 21 Sep 2012, 12:46 PM
For anybody else who finds this.  I posted this up on Stack Overflow and got a working reply.

http://stackoverflow.com/questions/12501427/kendo-ui-place-command-toolbar-at-bottom-of-grid/12514024#12514024
0
Gal
Top achievements
Rank 2
answered on 17 Nov 2014, 11:50 PM
how can this be done using  
0
Alexander Popov
Telerik team
answered on 20 Nov 2014, 03:41 PM
Hello,

Here is an example that uses the kendoWidgetCreated event to move the toolbar at the bottom, I hope it helps.

Regards,
Alexander Popov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Gal
Top achievements
Rank 2
answered on 02 Dec 2014, 09:25 PM
10X works like a
0
Pham
Top achievements
Rank 1
answered on 05 Jun 2015, 04:51 PM
How can I place toolbar Add button) in the header column of Update, Delete button
0
Gal
Top achievements
Rank 2
answered on 05 Jun 2015, 05:40 PM

Hi Pham 

 You can use the Columns Header Template to achieve the required behaviour.

 

Regards,

Gal Pasternak Shamlikashvili 

OOONA 

0
Pham
Top achievements
Rank 1
answered on 05 Jun 2015, 07:23 PM

Hi Gal 

I use  and I add to . But I don't know how to add command Create new record to grid header. This is my grid 

@model IEnumerable<dynamic>
@(
 Html.Kendo().Grid(Model).Name("Grid")
                .DataSource(ds => ds.Ajax()
                                .Model(m =>
                                {
                                    m.Id("Id");
                                     
                                    m.Field("Name", typeof(string));
                                    m.Field("Price", typeof(decimal));
                                    m.Field("Quantity", typeof(decimal));
                                    m.Field("ExpiredDate", typeof(DateTime));
                                })
                        .Read(r => r.Action("Read", "Home"))
                        .Update(u => u.Action("Update", "Home"))
                        .Destroy(u => u.Action("Destroy", "Home"))
                        .Create(u => u.Action("Create", "Home"))
                )
                .ToolBar(toolBar => toolBar.Create())
                .Columns(columns =>
                {
                     
                    columns.Bound("Name");
                    columns.Bound("Price").Format("{0:c}");
                    columns.Bound("Quantity");
                    columns.Bound("ExpiredDate").Format("{0:dd/MM/yyyy}");
                    columns.Command(command =>
                    {
                        command.Edit();
                        command.Destroy();
                    });                    
                })
                .Editable(editable => editable.TemplateName("ProductItem").Mode(GridEditMode.PopUp))
                    .Pageable(pageable => pageable
                .Refresh(true)
                .PageSizes(true)
                )
                 
                .Sortable()
                .Filterable()
)

Can you help me.

0
Gal
Top achievements
Rank 2
answered on 06 Jun 2015, 07:32 AM

Hi

 I'm not using MVC I'm using AngularJs but this jQuery works ok. 

Header Template Dojo

 

Regards,

Gal Pasternak Shamlikashvili 

OOONA 

0
Karol
Top achievements
Rank 1
answered on 24 Nov 2015, 03:05 PM

[quote]Alexander Popov said:Hello,

Here is an example that uses the kendoWidgetCreated event to move the toolbar at the bottom, I hope it helps.

Regards,
Alexander Popov
[/quote]

Hi Alexander - unfortunately it doesn't work once scrollable is set to false :(
Can you help please?

0
Karol
Top achievements
Rank 1
answered on 24 Nov 2015, 03:34 PM

I've actually managed to solve that problem amending following line:

$scope.myGrid.element.find(".k-grid-toolbar").insertAfter($scope.myGrid.element.find(".k-grid-content"));

to:

$scope.myGrid.element.find(".k-grid-toolbar").insertAfter($scope.myGrid.element.find("table[role=grid]"));

- not sure if it's the right way to solve it.

0
Antony
Top achievements
Rank 1
Iron
answered on 19 Dec 2017, 11:32 PM

Here is my simple jQuery solution for an MVC grid named ValuesGrid. I tweaked the toolbar style so that my Save and Cancel buttons look like stand alone buttons at the bottom right of the grid :

.k-grid-toolbar {
   float: right;
   background-color: white;
}

 

$("#ValuesGrid").find(".k-grid-toolbar").insertAfter($("#ValuesGrid table"));

0
Gregor
Top achievements
Rank 1
answered on 04 Jan 2018, 03:42 PM

I did it with an older version like this:

   $scope.mainGridOptions = {
        toolbar: '<a download="MyOrders.xlsx" class="k-button" ng-click="excel()" id="export">Excel</a>',

.....

}

0
Gregor
Top achievements
Rank 1
answered on 04 Jan 2018, 03:43 PM

I did this with an older version like this:

   $scope.mainGridOptions = {
        toolbar: '<a download="MyOrders.xlsx" class="k-button" ng-click="excel()" id="export">Excel</a>',

...}

Tags
Grid
Asked by
Jark Monster
Top achievements
Rank 1
Answers by
Jark Monster
Top achievements
Rank 1
Gal
Top achievements
Rank 2
Alexander Popov
Telerik team
Pham
Top achievements
Rank 1
Karol
Top achievements
Rank 1
Antony
Top achievements
Rank 1
Iron
Gregor
Top achievements
Rank 1
Share this question
or