1 Answer, 1 is accepted
1
Accepted
Hi Jason,
The refresh button in Kendo UI Grid for ASP.NET MVC is not enabled by default, however it can be displayed using the following configuration:
the Telerik team
The refresh button in Kendo UI Grid for ASP.NET MVC is not enabled by default, however it can be displayed using the following configuration:
.Pageable(pager => pager
.Refresh(
true
)
)
Regards,
Iliana Nikolovathe Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Jason
commented on 29 Oct 2012, 07:00 PM
Top achievements
Rank 1
Appreciate the answer, one thing that might be nice is the ability to turn on refresh but not paging...
Josh
commented on 16 Jan 2014, 05:15 PM
Top achievements
Rank 1
+1 on the request, refreshing and paging should not be so tightly coupled
Iliana Dyankova
commented on 20 Jan 2014, 12:11 PM
Telerik team
Hello guys,
We will appreciate it if you submit this idea as a feature request at Kendo UI UserVoice page - this way the community would be to evaluate it and if the suggestion gains popularity we will consider its implementation for future releases.
Regards,
Iliana Nikolova
Telerik
We will appreciate it if you submit this idea as a feature request at Kendo UI UserVoice page - this way the community would be to evaluate it and if the suggestion gains popularity we will consider its implementation for future releases.
Regards,
Iliana Nikolova
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Carl
commented on 03 May 2014, 07:56 PM
Top achievements
Rank 1
Please add your comments and votes for a refresh button on the grid. Here's the feedback link:
http://kendoui-feedback.telerik.com/forums/127393-telerik-kendo-ui-feedback/suggestions/5751154-grid-refresh-should-independent-from-pageable-buil
http://kendoui-feedback.telerik.com/forums/127393-telerik-kendo-ui-feedback/suggestions/5751154-grid-refresh-should-independent-from-pageable-buil
Ezequiel
commented on 26 Sep 2014, 02:14 PM
Top achievements
Rank 2
Is already available an option to have the footer with refresh button, but no paging?
I want to display a grid with a defined height, with option to refresh, total number of rows but I don't want paging.
I want to display a grid with a defined height, with option to refresh, total number of rows but I don't want paging.
Iliana Dyankova
commented on 29 Sep 2014, 06:37 AM
Telerik team
Hi Ezequiel,
In order to achieve this you should configure the pageable object. For your convenience here is a dojo example.
Regards,
Iliana Nikolova
Telerik
In order to achieve this you should configure the pageable object. For your convenience here is a dojo example.
Regards,
Iliana Nikolova
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.
Ezequiel
commented on 29 Sep 2014, 11:00 AM
Top achievements
Rank 2
Iliana, but in this example, if you set info to true, you can see that it's displaying 20 of 91.
I want to display all 91 rows in one page, but add the refresh button.
I want to display all 91 rows in one page, but add the refresh button.
Ezequiel
commented on 01 Oct 2014, 02:53 PM
Top achievements
Rank 2
Here is an issue that I have, here is my Detail Grid:
Attached is the result.
You see that I have 13, but it's only displayed 1-10.
Thanks.
<%:
this
.Html.Kendo().Grid<EditableContainer>()
.Name(
"GridContainers_#=Group#"
)
.DataSource(ds => ds.Ajax().ServerOperation(
true
)
.Read(
"ReadContainer"
,
"CadastrarCargaContainer"
,
new
{ embarqueId =
"#=EmbarqueId#"
, depositoId =
"#=DepositoId#"
, transportadorId =
"#=TransportadorId#"
, tipoContainerCodigo =
"#=TipoContainerCodigo#"
, dataPrevisao =
"#=DataPrevisaoParam #"
})
.Update(
"UpdateContainer"
,
"CadastrarCargaContainer"
,
new
{ embarqueId =
"#=EmbarqueId#"
, depositoId =
"#=DepositoId#"
, transportadorId =
"#=TransportadorId#"
, tipoContainerCodigo =
"#=TipoContainerCodigo#"
, dataPrevisao =
"#=DataPrevisaoParam #"
})
.Model(m =>
{
m.Id(f => f.Id);
})
.Events(ev => ev.Error(
"error_handler.bind({WidgetID: 'GridContainers_#=Group#'})"
)))
.Columns(columns =>
{
columns.Bound(c => c.Id).Hidden(
true
);
columns.Bound(c => c.NumeroContainer).Width(
"120px"
);
columns.Bound(c => c.Tara).Format(
"{0:N}"
).Width(
"25px"
);
columns.Bound(c => c.PesoBrutoVolumes).Format(
"{0:N}"
).Width(
"75px"
);
columns.Bound(c => c.NomeMotorista).Width(
"125px"
);
columns.Bound(c => c.NumeroIdentidade).Width(
"75px"
);
columns.Bound(c => c.Veiculo).Width(
"75px"
);
columns.Command(command =>
{
command.Edit();
}).Width(
"155px"
);
})
.Events(ev => ev.Save(
"SaveContainer"
))
.Pageable(page => page.Refresh(
true
).Input(
false
).PreviousNext(
false
).Numeric(
false
).Info(
true
))
.Editable(edit => edit.Mode(Kendo.Mvc.UI.GridEditMode.InLine))
.ToClientTemplate()
%>
Attached is the result.
You see that I have 13, but it's only displayed 1-10.
Thanks.
Iliana Dyankova
commented on 02 Oct 2014, 08:42 AM
Telerik team
Hi Ezequiel,
For this scenario you should get the total of records and set it to as PageSize. As an example:
Regards,
Iliana Nikolova
Telerik
For this scenario you should get the total of records and set it to as PageSize. As an example:
var
dataSource = $(
"#grid"
).data(
"kendoGrid"
).dataSource,
totalItems = dataSource.total();
dataSource.pageSize(totalItems);
Regards,
Iliana Nikolova
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.