python ruby-programming-language Smalltalk Vue.js Knockoutjs TypeScript JavaScript, OOPs JavaScript Angular 8,7,6,5,4 and 2 Interview Questions and Answers Angular 8,7,6,5,4 and 2 Interview Questions and Answers Angular 4 Angular 2 AngularJs 1.x NodeJs Perl Programming R Programming RequireJs Rust Programming Backbonejs closure programming language go-programming-language kotlin-programming-language
Kendo ui grid record length count

Kendo ui grid record length count

MVC 4 Controller code sample

 //Use api Controller
// GET api/use/
public string Get(int id)
    return "value";

 Kendo MVC4 Grid code sample

    .Columns(columns =>
        columns.Bound(e => e.Product).Title("Product");
        columns.Bound(e => e.UsageIncluded).Title("Usage Included");
        columns.Bound(e => e.UsageIncludedTypeID).Title("Usage Included Type").ClientTemplate("#: getUsageIncludedType(UsageIncludedTypeID) #");
        columns.Bound(e => e.NetworkID).Title("Network").ClientTemplate("#: getNetworkName(NetworkID) #");
        columns.Bound(e => e.UsageMade);
    .DataSource(dataSource => dataSource
        .Read(read => read.Action("GetUsageByPricing", "Api/Use").Type(HttpVerbs.Get).Data("sendData"))

JavaScript Code sample

<script type="text/javascript">
var kendoGrid = $("#kndoGridId").data("kendoGrid");

var msg = "<div class='clr_15'></div><div class='alert grid-no-record'>No Record found</div>";

if (kendoGrid !== undefined && kendoGrid !== null) {
    kendoGrid.bind("dataBound", function (e) {
        if (e.sender.dataSource.view().length === 0) {
            e.sender.table.closest(".k-grid-content").css({ "overflow-y": "scroll;" });

function sendData() {
    return {
        TenantID: '@userSession.TenantID',
        CompanyID: '@userSession.CompanyID'



Hi there! Welcome to my blog. My name is Anil Singh. I'm a author of this blog. For more detail about me, kindly refer to this link..
My Blogs - and
My Books - Interview Questions and Answers Books- Get Your Book in 15+ Digital Stores Worldwide..

You Might Also Like Powered by Blogger.
ASK Questions