Splitter Pane Content in VB

3 posts, 1 answers
  1. Laszlo
    Laszlo avatar
    3 posts
    Member since:
    Aug 2013

    Posted 15 Aug 2013 Link to this post

    Hello, I would like to ask how does the VB syntax is for the Content part of this example, how can i add a html code like that in VB?

    @(Html.Kendo().Splitter()
        .Name("top")
        .Orientation(SplitterOrientation.Horizontal)
        .Panes(panes =>
        {
            panes.Add()
                .HtmlAttributes(new { id = "left-pane" })
                .Scrollable(true)
                .Collapsible(true)
                .Content(@<div>
                    @(Html.Kendo().TreeView()
                                .Name("treeview")
                                .DragAndDrop(true)
                                .DataTextField("Name")
                                .Events(events => events
                                    .DragEnd("Change")
                                    .Select("Selected")
                                    )
                                .DataSource(dataSource => dataSource
                                    .Read(read => read.Action("TreeView_Read", "Platform")))
                            )
                </div>
                );
  2. Answer
    Petur Subev
    Admin
    Petur Subev avatar
    1882 posts

    Posted 19 Aug 2013 Link to this post

    Hello Laszlo,

    Give a try with the following syntax:

    @Code
        Html.Kendo().Splitter() _
            .Name("Splitter") _
            .Panes(Sub(panes)
                           panes.Add().Content(Sub()@<text> Some content , some widget @(Html.Kendo().Editor().Name("foo")) </text> End Sub)
                            panes.Add().Content(Sub()@<text> Some other content , some other widget @(Html.Kendo().Editor().Name("bar")) </text> End Sub)
                   End Sub) _
               .Render()
    End Code

    I hope this helps.

    Kind Regards,
    Petur Subev
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Kendo UI is VS 2017 Ready
  4. Laszlo
    Laszlo avatar
    3 posts
    Member since:
    Aug 2013

    Posted 19 Aug 2013 Link to this post

    Thank you!
Back to Top