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

Splitter Pane Content in VB

2 Answers 46 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Laszlo
Top achievements
Rank 1
Laszlo asked on 15 Aug 2013, 07:18 AM
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 Answers, 1 is accepted

Sort by
0
Accepted
Petur Subev
Telerik team
answered on 19 Aug 2013, 07:10 AM
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!
0
Laszlo
Top achievements
Rank 1
answered on 19 Aug 2013, 07:43 AM
Thank you!
Tags
Splitter
Asked by
Laszlo
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Laszlo
Top achievements
Rank 1
Share this question
or