Treeview examples in VB

3 posts, 0 answers
  1. David Waller
    David Waller avatar
    11 posts
    Member since:
    Jul 2012

    Posted 30 Dec 2012 Link to this post

    Are there any VB examples available for Treeview. I've been trying for hours to get even a simple Treeview populated but I've been getting nowhere.
  2. Petur Subev
    Petur Subev avatar
    1882 posts

    Posted 31 Dec 2012 Link to this post

    Hi David,

    We do not have VB examples - I could suggest you to use some converter to translate the expression without the special symbols @() for Razor and <%= %> for ASPX and then append them manually inside of your view.

    For convenience here is one snippet in VB which could give you the idea how to construct the fluent configuration.

    Grid within TabStrip

    @ModelType IEnumerable(Of VBRazor.CustomEvent)                                
        Html.Telerik().TabStrip().Name("AdminDashboard") _
                           tabstrip.Add().Text("All Events") _
                                            Html.Telerik().Grid(Of VBRazor.CustomEvent)(Model).Name("Events") _
                                                .DataKeys(Function(datakey) datakey.Add(Function(i) i.ID)) _
                                                                 column.Bound(Function(i) i.DateTime).Title("Date Created").Format("{0:d}")
                                                                 column.Bound(Function(i) i.ID)
                                                         End Sub) _
                                                .Pageable() _
                                                .Sortable(Function(sorting) sorting.OrderBy(Sub(order) order.Add(Function(i) i.DateTime).Descending())) _
                                                .Filterable(Function(filtering) filtering.Filters(Function(filter) filter.Add(Function(o) o.DateTime).IsGreaterThan(Date.Today.AddMonths(-3)))) _
                                    End Sub)
                   End Function) _
    End Code

    Petur Subev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. UI for ASP.NET AJAX banner
  4. Nathan
    Nathan avatar
    37 posts
    Member since:
    Sep 2011

    Posted 02 Apr 2013 Link to this post

    Do we have any actual examples yet?

    Specifically, examples of how to bind to a dataset would be ideal.

    It seems like pretty basic functionality?
Back to Top