MVC3 + Grid + Razor + VB.Net?

3 posts, 0 answers
  1. Greg
    Greg avatar
    18 posts
    Member since:
    Nov 2012

    Posted 14 Nov 2012 Link to this post

    Are there any working examples on implementing the Kendo Grid with the above criteria?

    I've tried using converted C# examples but none of them seem to work. I'm just trying to work around the Northwind database as my experimental data source.

    It's very, very hard to do a proper evaluation of a product without any documentation for a "supported" language.
  2. Greg
    Greg avatar
    18 posts
    Member since:
    Nov 2012

    Posted 14 Nov 2012 Link to this post

    I finally figured it out. I was going to attach an example but it appears to be too large a file for the forum's limits. A copy and paste of the markup text will have to do.

    @Modeltype IEnumerable(Of KendoUIMvcApplication2.ViewModels.ProductViewModel)
     
    @Code
        ViewData("Title") = "Home Page"
    End Code
     
    <h2>@ViewData("Message")</h2>
    <br />
    @(Html.Kendo.Grid(Model).Name("Grid") _
        .Groupable() _
        .Pageable() _
        .Sortable() _
        .Scrollable() _
        .Filterable() _
        .Columns(Sub(columns)
                         columns.Bound(Function(p) p.ProductID).Groupable(False)
                         columns.Bound(Function(p) p.ProductName)
                         columns.Bound(Function(p) p.UnitPrice)
                         columns.Bound(Function(p) p.UnitsInStock)
                 End Sub) _
        .DataSource(Function(dataSource)
                            dataSource.Ajax().Read(Function(read) read.Action("Products_Read", "Grid"))
                    End Function))


  3. Andy
    Andy avatar
    1 posts
    Member since:
    Jan 2015

    Posted 29 Apr 2015 in reply to Greg Link to this post

    Thank you Greg for posting a follow up to your own question.

    It is very hard to find examples in .vbhtml (even 3 years later)

Back to Top