This project is read-only.

Telerik Grid in Orchard Module

Topics: Writing modules
Aug 7, 2012 at 7:05 PM

Hi all,
I'm trying to use Telerik Grid in my module.
However, i cant seem to make it render properly.

When I use @{Html.Telerik()....DataBinding(...); , it simply doesnt render anything.
But if i use @{Html.Telerik()....DataBinding(...).Render(); , it renders the html at the very begginning of the page.

does anybody know what i might be missing?

thank you, and below is my sample view :

@model Orchard.Users.ViewModels.UsersIndexViewModel
@using Orchard.Users.Models;
@using Orchard.Users.ViewModels;
@using Telerik.Web.Mvc.UI

    var userIndex = 0;

    Layout.Title = T("Users").ToString();
@{Html.Telerik().Grid(Model.Users).Name("Grid").Columns(columns =>
                columns.Bound(o => o.User.UserName).Width(100);
                columns.Bound(o => o.User.Email);
        .DataBinding(dataBinding =>
                dataBinding.Server().Select("Index", "Account", new {ajax = false});

@using (Script.Foot()) {

Aug 8, 2012 at 11:47 AM
Edited Aug 8, 2012 at 11:50 AM

Telerik support is the best, you'll get a faster answer over there.

Aug 8, 2012 at 5:05 PM

Not if I beat them to it :)

Try this:


Aug 8, 2012 at 6:19 PM


big thank skywalker, it works.
such a rookie mistake :)

from me