Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6669721
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:11:01+00:00 2026-05-26T03:11:01+00:00

I am using version 2011.2.914 of the controls. Whenever I try to bind data

  • 0

I am using version 2011.2.914 of the controls. Whenever I try to bind data from my controller to a view, I can’t get the data inside the collection to display on the grid. I get the “No records to display” message from the grid.

I want to point out that if I am not using the Telerik grid, the data comes out fine (see below):
Controller without Telerik Grid

IEnumerable<YeagerTechWcfService.Customer> customerList = db.GetCustomers();
                     return View("Index", customerList);

View

@model IEnumerable<YeagerTech.YeagerTechWcfService.Customer>

@{
    ViewBag.Title = "Customer Index";
}
<h2>Customer Index</h2>
<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            Email
        </th>
        <th>
            Company
        </th>
        <th>
            FirstName
        </th>
        <th>
            LastName
        </th>
        <th>
            Address1
        </th>
        <th>
            Address2
        </th>
        <th>
            City
        </th>
        <th>
            State
        </th>
        <th>
            Zip
        </th>
        <th>
            HomePhone
        </th>
        <th>
            CellPhone
        </th>
        <th>
            Website
        </th>
        <th>
            IMAddress
        </th>
        <th>
            CreatedDate
        </th>
        <th>
            UpdatedDate
        </th>
        <th>
        </th>
    </tr>
    @if (ViewData.Model != null)
    {
        foreach (var item in Model)
        {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.Email)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Company)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.FirstName)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.LastName)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Address1)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Address2)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.City)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.State)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Zip)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.HomePhone)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.CellPhone)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Website)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.IMAddress)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.CreatedDate)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.UpdatedDate)
            </td>
            <td>
                @Html.ActionLink("Edit", "Edit", new { id = item.CustomerID }) |
                @Html.ActionLink("Details", "Details", new { id = item.CustomerID })
            </td>
        </tr>
        }
    }
</table>

I have tried ServerSide and Ajax Binding. Both don’t work. I have searched the Telerik site and the web and can’t find out what is missing.

What do I need to do in order to resolve this and get the data in my grid?

Here is the code in my Customer controller for the Ajax binding (which is what I really want). Upon return of getting the data, I have an image file that I saved where the data is in the customerList collection (there is no option to attach any files in StackOverflow, so I can’t show you).

When the View is being rendered, I captured data while debugging for several objects.
When cycling through the grid during the binding, I captured data in another file.

Controller using Telerik Grid:
using Telerik.Web.Mvc;
public class CustomerController : Controller
{

[GridAction]
         public ActionResult Index()
         {
                     IEnumerable<YeagerTechWcfService.Customer> customerList = db.GetCustomers();
                     return View(new GridModel<YeagerTechWcfService.Customer>
                     {
                         Data = customerList
                     });

         }
 }

Below, is the code in my associated View. btw, all the bound columns have intellisense that pop up for the columns in my model. This is for the Index action within the Customer controller.

@model Telerik.Web.Mvc.GridModel<YeagerTech.YeagerTechWcfService.Customer>
 @{
     ViewBag.Title = "Customer Index";
 }
 <h2>
     Customer Index</h2>
 <p>
     @Html.ActionLink("Create New", "Create")
 </p>
 <table>
     @(Html.Telerik().Grid<YeagerTech.YeagerTechWcfService.Customer>()
   .Name("Customers")
   .Columns(columns =>
 {
     columns.Bound(o => o.Email);
     columns.Bound(o => o.Company);
     columns.Bound(o => o.FirstName);
     columns.Bound(o => o.LastName);
     columns.Bound(o => o.Address1);
     columns.Bound(o => o.Address2);
     columns.Bound(o => o.City);
     columns.Bound(o => o.State);
     columns.Bound(o => o.Zip);
     columns.Bound(o => o.HomePhone);
     columns.Bound(o => o.CellPhone);
     columns.Bound(o => o.Website);
     columns.Bound(o => o.IMAddress);
     columns.Bound(o => o.CreatedDate).Format("{0:MM/dd/yyyy}");
     columns.Bound(o => o.UpdatedDate).Format("{0:MM/dd/yyyy}");
 }).DataBinding(dataBinding => dataBinding.Ajax().Select("Index", "Customer"))
 .Pageable()
 .Sortable()
 .Scrollable()
 .Resizable(resizing => resizing.Columns(true))
 .Filterable())
 </table>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T03:11:02+00:00Added an answer on May 26, 2026 at 3:11 am

    Maybe there’s a conflic with your Index action method since that you have a View that is referenced to it. The first test to do is to show your grid without playing with Ajax or anything else.

    Try this to initialize your grid when your View Index is build. Notice the Model.Data that i’m using in the Grid constructor:

    @(Html.Telerik().Grid<YeagerTech.YeagerTechWcfService.Customer>(Model.Data)
       .Name("Customers")
       .Columns(columns =>
       {
           columns.Bound(o => o.Email);
           columns.Bound(o => o.Company);
           ...
       }))
    

    If it work, then you should try to create another Action method with another name. In my projects, i do this:

    [GridAction]
    public ActionResult GetYeagerTechGridData()
    {
        IEnumerable<YeagerTechWcfService.Customer> customerList = db.GetCustomers();
        return View(new GridModel<YeagerTechWcfService.Customer>
        {
            Data = customerList
        });
    }
    

    and use your grid that way:

    @(Html.Telerik().Grid<YeagerTech.YeagerTechWcfService.Customer>()
       .Name("Customers")
       .Columns(columns =>
       {
           columns.Bound(o => o.Email);
           columns.Bound(o => o.Company);
           ...
       })
       .DataBinding(dataBinding => dataBinding.Ajax().Select("GetYeagerTechGridData", "Customer")))
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Intellij version 8. How can I view the warnings or errors for
Currently using Telerik ASP .NET MVC Controls version 2011.2.712 Hello all, I am trying
Using the Facebook C# API release version from 12/20/2011, I'm calling the facebook client
I have set up a NInject (using version 1.5) binding like this: Bind<ISessionFactory>().ToMethod<ISessionFactory>(ctx =>
I'm learning Ruby (using version 1.8.6) on Windows 7. When I try to run
Greetings, I'm using https://github.com/blueimp/jQuery-File-Upload (downloaded the version as of 5/21/2011) along with ASP.NET MVC3.
I am using RAD version 7.5.4 and whenever I am opening the IDE, the
I am using the latest version Telerik MVC controls . I am using ASP.NET
I'm using Extensions for ASP.NET MVC Q3 2011(open source version) with Razor engine and
Let me preface by saying that I'm new to ant, and I'm using version

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.