good morning everyone,
I am currently using the licensed version of Kendo UI Complete for ASP.NET MVC (Q2 2012) and trying to figure out if the Kendo UI Grid has something similar to the NoRecordsTemplate method in the Telerik Extensions for ASP.NET MVC Grid?
Before this, I was using the licensed version of Telerik Extensions for ASP.NET MVC. Below is the code I had for it. You'll notice, there is a "NoRecordsTemplate" method which I can specify my own custom text if the grid is empty, has no records.
Below is my Keno UI Grid code. How does one specify custom text when there are no records for the grid, when the grid is empty?
Thank you very much for your help
I am currently using the licensed version of Kendo UI Complete for ASP.NET MVC (Q2 2012) and trying to figure out if the Kendo UI Grid has something similar to the NoRecordsTemplate method in the Telerik Extensions for ASP.NET MVC Grid?
Before this, I was using the licensed version of Telerik Extensions for ASP.NET MVC. Below is the code I had for it. You'll notice, there is a "NoRecordsTemplate" method which I can specify my own custom text if the grid is empty, has no records.
@{Html.Telerik().Grid(Model)
.Name("grdAllUsers")
.DataKeys(keys => keys.Add(k =>
k.Id)
)
.Columns(columns =>
{
columns.Bound(o => o.FirstName)
.Width(150);
columns.Bound(o => o.LastName)
.Width(150);
columns.Bound(o => o.EmailAddress)
.Width(200);
.Width(70)
.HtmlAttributes(new { style = "text-align:center" });
})
.NoRecordsTemplate(@<
text
>No User records to display.</
text
>)
.Pageable(paging =>
paging.PageSize(15)
)
.Sortable()
.Filterable()
.Render();
}
Below is my Keno UI Grid code. How does one specify custom text when there are no records for the grid, when the grid is empty?
@{Html.Kendo().Grid(Model)
.Name("grdAllUsers")
.Columns(columns =>
{
columns.Bound(o => o.FirstName)
.Width(150);
columns.Bound(o => o.LastName)
.Width(150);
columns.Bound(o => o.EmailAddress)
.Width(200);
.Width(70)
.HtmlAttributes(new { style = "text-align:center" });
})
.Pageable(paging =>
paging.PageSize(15)
)
.Sortable()
.Filterable()
.Render();
}
Thank you very much for your help