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

Refresh button positioning

1 Answer 285 Views
Grid
This is a migrated thread and some comments may be shown as answers.
George
Top achievements
Rank 1
George asked on 06 Oct 2014, 08:15 PM
I would like to position the refresh button at the top of the grid. Is that possible? The grid below is a sample of the code. (mostly default values)

@(Html.Telerik().Grid(Model.DeleteableRules)

         
.Name("DeleteableRulesGrid")

         
.DataKeys(dk => dk.Add(dr => dr.ListID))

         
.Selectable()

         
.Columns(columns =>

          {

             
columns.Bound(dr => dr.ListID).HtmlAttributes(new
{ style = "width:100px;" });

             
columns.Bound(dr => dr.OrganizationID).HtmlAttributes(new { style = "width:100px;"
});

             
columns.Bound(dr => dr.RuleName).HtmlAttributes(new
{ style = "width:300px;" });

             
columns.Bound(dr => dr.CurrentState).HtmlAttributes(new
{ style = "width:300px;" });

          })

 

          )



1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 08 Oct 2014, 11:37 AM
Hi George,

The Refresh button cannot be moved to the top of the Grid, however, you can use a custom button with the same HTML markup, place it anywhere you prefer, and attach a click handler to it, which executes the read() method of the Grid dataSource.

http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#fields-dataSource

http://docs.telerik.com/kendo-ui/api/javascript/data/datasource#methods-read

Regards,
Dimo
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
George
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or