This question is locked. New answers and comments are not allowed.
Can the Telerik Grid be used with Azure Table Storage (ATS)? ATS does not support Count, so there's no simple way to know how many entities a table contains. This makes paging a little tricky.
Also ... thanks, Telerik, for supporting .NET Rocks and Hanselminutes. That's where I learned about you.
Also ... thanks, Telerik, for supporting .NET Rocks and Hanselminutes. That's where I learned about you.
5 Answers, 1 is accepted
0
Hi B E,
The Grid requires Count() in order to support paging properly (to determine the number of pages). If you don't need paging it should work.
Regards,
Atanas Korchev
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items.
The Grid requires Count() in order to support paging properly (to determine the number of pages). If you don't need paging it should work.
Regards,
Atanas Korchev
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items.
0

B E
Top achievements
Rank 1
answered on 19 Mar 2010, 05:41 PM
Right now, I'm paging through Azure Table Storage 25 entities at a time with my own solution. It works fine. Since there's no Count, I don't know the total number of pages. That's OK. Perhaps Telerik could come up with instructions on how to use the Grid in this scenario.
0
Hello B E,
Currently we do not support paging without knowing the total number of records. I am not really sure how paging should work in that case - how to display the total number of pages, how to know when the user has reach the last page etc.
Regards,
Atanas Korchev
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items.
Currently we do not support paging without knowing the total number of records. I am not really sure how paging should work in that case - how to display the total number of pages, how to know when the user has reach the last page etc.
Regards,
Atanas Korchev
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items.
0

James
Top achievements
Rank 1
answered on 29 Mar 2012, 08:55 AM
Any update on this yet? I'm looking for a Grid control that supports Azure Tables
0

Dadv
Top achievements
Rank 1
answered on 29 Mar 2012, 10:36 AM
I don't know Azure Table but i can hypothesize :
if you use custom binding (server or ajax) you could make this kind of trick =>
.OnLoad("onLoad"))
.Pageable(a=>a.PageSize(50).Style(GridPagerStyles.NextPreviousAndDropDown))
$('.t-icon.t-arrow-last').parent().hide();
$('.t-status-text').hide();
}
if you use custom binding (server or ajax) you could make this kind of trick =>
.OnLoad("onLoad"))
.Pageable(a=>a.PageSize(50).Style(GridPagerStyles.NextPreviousAndDropDown))
function onLoad(e) {
$('.t-icon.t-arrow-last').parent().hide();
$('.t-status-text').hide();
}
[GridAction(EnableCustomBinding = true)]
public ActionResult _CustomBinding(GridCommand command)
{
IEnumerable data = GetData(command); int count = Int32.MaxValue;
data = data.Skip((command.Page - 1) * command.PageSize).Take(command.PageSize);
if (data.Count() < command.PageSize)
count = command.Page * command.PageSize - (command.PageSize - data.Count());
return View(new GridModel { Data = data, Total = count });
}