This is a migrated thread and some comments may be shown as answers.

[Solved] MVC 3 Grid

0 Answers 99 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Casey
Top achievements
Rank 1
Casey asked on 05 Jul 2011, 09:13 PM
I'm trying to implement the Telerik grind into my application. Im using Visual Studio 2010, MVC 3, Ling to Sql, and Visual Basic.

To make things easier I would like to chunk the implmentation in to pieces.

To start I would like to add the grid onto my page without being connected to data, this way I can very things render correctly without data issues. Here's what I've been playing with from previous examples and tutorials.

Dim gridBuilder As Telerik.Web.Mvc.UI.Fluent.GridBuilder(Of currentproject.model) = Html.Telerik().Grid(Model)
 
'gridBuilder.Columns(Function(columns As Telerik.Web.Mvc.UI.Fluent.GridColumnFactory(Of Global.currentproject.model)) columns.Bound(Function(o) o.DtmPurchased))
'gridBuilder.Columns(Function(columns As Telerik.Web.Mvc.UI.Fluent.GridColumnFactory(Of Global.currentproject.model)) columns.Template(Sub(o)@<text>Some template goes here for ID = @Model.IntCounter </text> End Sub).Title("Template Column"))
 
gridBuilder.Render()

Another example I was playing with looked similar to this:

@html.telerik().grid().name("testing")


I could be far off but for starters can we render the grid on a page without any data, Thanks in advance!

As an additional note I have added the Telerik references from Nugets package manager.
Tags
Grid
Asked by
Casey
Top achievements
Rank 1
Share this question
or