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

Working with the Kendo Grid

2 Answers 69 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
AspenSquare
Top achievements
Rank 1
AspenSquare asked on 12 Nov 2012, 09:35 PM
Breakdown of what I'm attempting to do:

I'm trying to bind a Kendo grid to my ViewModel and simply display the id, Name, City, and State along with a button to delete (one button per row).
I would like the delete button to fire off the 'Delete' in my controller.


I've installed the KendoUIWeb via NuGet and was wondering how it's used.

I see Intellisense is working when I type something in my view like:

@Html.Kendo().Grid()

From the example that I've found online and in the demos listed on this site it doesn't look like Kendo is following that format.

If I throw a grid in my view as show in the examples:

<div id="grid"></div>
<script>
    $("#grid").kendoGrid({
        columns: [ { title: "Id" },
                   { title: "Name" },
                   { title: "City" },
                   { title: "State" }]
         
 
    });
     
</script>
I can see the grid on the page but in VisualStudio 2012 I'm getting no Intellisense support for Kendo. I've worked with the old Telerik MVC grid and got used to it but Kendo seems foreign at this point.

2 Answers, 1 is accepted

Sort by
0
Dennis
Top achievements
Rank 1
answered on 20 Nov 2012, 08:35 PM
Are you using areas you need to add this to your web.config under the views folder and if not just add it to the web.config in the root. Close your solution and open it back up. I have to do this every time I add a new area.

<add namespace="Kendo.Mvc.UI" />

Thanks
Dennis
0
AspenSquare
Top achievements
Rank 1
answered on 20 Nov 2012, 08:39 PM
I got it working.


I ended up going the ASP.NET MVC route.
Tags
General Discussions
Asked by
AspenSquare
Top achievements
Rank 1
Answers by
Dennis
Top achievements
Rank 1
AspenSquare
Top achievements
Rank 1
Share this question
or