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

[Solved] Using Telerik Extensions for ASP.NET MVC in your project

1 Answer 99 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Max
Top achievements
Rank 1
Max asked on 19 Oct 2011, 10:25 PM
Hi all

I am trying to run the
but I guess since I am using the Razor sintaxe I am not doing it right. Basically I need the code below to be in Razor:

<% Html.Telerik().PanelBar()
       .Name("PanelBar")
       .Items(items =>
       {
           items.Add().Text("Item 1")
                      .Content(() =>
                      {%>
                            <p>Content</p>
                       <% });
           items.Add().Text("Item 2")
                .Items(subItems =>
                      {
                          subItems.Add().Text("Sub Item 1");
                          subItems.Add().Text("Sub Item 2");
                          subItems.Add().Text("Sub Item 3");
                      });
       })
       .Render();
%>
Any ideas?Thank you

1 Answer, 1 is accepted

Sort by
0
Max
Top achievements
Rank 1
answered on 20 Oct 2011, 12:12 AM
Nevermind, I found plenty of samples on the samples site! -- Thank you!
Tags
General Discussions
Asked by
Max
Top achievements
Rank 1
Answers by
Max
Top achievements
Rank 1
Share this question
or