This is a migrated thread and some comments may be shown as answers.
Spark View + Grid
2 Answers 46 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Michael Munnis
Top achievements
Rank 1
Michael Munnis asked on 10 Nov 2009, 08:46 PM
I'm wondering if anyone has an example of using the Spark View engine with the Grid extension.  I've been unsuccessful so far.

2 Answers, 1 is accepted

Sort by
0
Michael Munnis
Top achievements
Rank 1
answered on 10 Nov 2009, 10:37 PM

I've made some progress on getting this to render.  The ActionLink's are still eluding me.  They don't throw an error, but they also don't render.

 <

 

viewdata model="List[[Hardware]]"/>

 

 

 

${Html.Telerik().Grid

<Hardware>(ViewData.Model).Name("Grid").Columns(columns => 

                {  
                  columns.Add(o => o.Id);  
                  columns.Add(o => o.DeviceName);  
                  columns.Add(o => 
                    {  
                      Html.ActionLink("Edit", "Edit", new { id = o.Id }, new { @class = "t-link action-edit" });  
                      Html.ActionLink("Delete", "Delete", new { id = o.Id }, new { @class = "t-link action-delete" });  
                    }).Title("Actions").Width(150);  
                })  
                    .Pageable()  
                    .Sortable()  
                    .Scrollable()  
                    .Filterable()  
        } 
0
Atanas Korchev
Telerik team
answered on 11 Nov 2009, 09:13 AM
Hi Michael Munnis,

Find attached a sample project using the Spark view engine and the grid.

I hope this helps,
Atanas Korchev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Michael Munnis
Top achievements
Rank 1
Answers by
Michael Munnis
Top achievements
Rank 1
Atanas Korchev
Telerik team
Share this question
or