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

[Solved] Show contentplaceholder in right pane - vb

2 Answers 41 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
orim
Top achievements
Rank 1
orim asked on 18 Jun 2012, 03:15 PM
Hi,
i cannot display my mvccontentpages in right pane. Any ideers
Thanks
<%= Html.Telerik.Splitter _
     .Name("RootSplitter") _
     .HtmlAttributes(New With {.height = "700px"}) _
     .Orientation(SplitterOrientation.Horizontal) _
     .Panes(Sub(rp)
                   
                rp.Add.Size("400px") _
                .Scrollable(False) _
                .Content(Function(x)
                                                  
                             x = Html.Telerik.Splitter.Name("ChildSplitterLeft") _
                                                      .Orientation(SplitterOrientation.Vertical) _
                                                      .Panes(Sub(cp)
                                                                                                                
                                                                 cp.Add.LoadContentFrom("ShowTree", "TreeView")
                                                                 cp.Add.LoadContentFrom("ShowGrid", "TreeView")
                                                                                                                
                                                             End Sub)
                                                      
                             Return x
                                                  
                         End Function)
                rp.Add.Content(Function(ct)
ct = .... Now here how to <asp:contnetPlaceHolder ID="MainContent" runat="server"/>
What is the right syntex for vb.net
 
Return ct
End Function)
                                    
                               
                                   
                           
                    
            End Sub)%>

2 Answers, 1 is accepted

Sort by
0
Accepted
Daniel
Telerik team
answered on 21 Jun 2012, 10:25 AM
Hello Miroslav,

You can use the Action overload of the Content method like shown in the Nesting Components demo to set the content e.g. 

<% Html.Telerik.Splitter _
  .Name("RootSplitter") _
  .HtmlAttributes(New With {.height = "700px"}) _
  .Orientation(SplitterOrientation.Horizontal) _
  .Panes(Sub(rp)
             rp.Add.Size("400px") _
             .Scrollable(False) _
             .Content(Sub()%>
                                  <% 
                          Html.Telerik.Splitter.Name("ChildSplitterLeft") _
                                            .Orientation(SplitterOrientation.Vertical) _
                                            .Panes(Sub(cp)
                                                                                                                 
                                                       cp.Add.LoadContentFrom("ShowTree", "TreeView")
                                                       cp.Add.LoadContentFrom("ShowGrid", "TreeView")
                                                   End Sub).Render()
                                        %>
                                   <%                                                                        
                      End Sub)
             rp.Add.Content(Sub()
                        %>
                            <asp:ContentPlaceHolder ID="MainContent" runat="server"/>
                        <%
                            End Sub)
         End Sub).Render()%>

Regards,
Daniel
the Telerik team
Check out the successor of Telerik MVC Extensions - Kendo UI for ASP.NET MVC - and deem it for new ASP.NET MVC development.
0
orim
Top achievements
Rank 1
answered on 22 Jun 2012, 07:57 AM
Thanks so much - that`s it
Tags
Splitter
Asked by
orim
Top achievements
Rank 1
Answers by
Daniel
Telerik team
orim
Top achievements
Rank 1
Share this question
or