Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Telerik MVC Extensions (superseded) > TabStrip > TabStrip in EditorFor

Not answered TabStrip in EditorFor

Feed from this thread
  • Dan Miser avatar

    Posted on Nov 29, 2011 (permalink)

    I am trying to break out one of my EditorFor templates to use a TabStrip with 2011.3.1115. Here are the results:

    BadLocation.png shows how it renders in IE9 and FF 8.01.
    GoodLocation.png shows how it renders in IE9 in compatibility mode.

    The code looks like this:
    @using Telerik.Web.Mvc.UI
    @model LocationViewModel

    @{Html.Telerik().TabStrip()
          .Name("LocationTabStrip")
          .Items(tabstrip =>
          {
              tabstrip.Add()
                  .Text("General")
                  .Content(@<text>
    // Code exactly like that in Owner, but with different fields
                             </text>);
              tabstrip.Add()
                  .Text("Owner")
                  .Content(@<text>
                               <div class="editor-label">@Html.LabelFor(l => l.OwnerName)</div>
                                <div class="editor-field">@Html.EditorFor(l => l.OwnerName) @Html.ValidationMessageFor(l => l.OwnerName)</div>
                                <div class="editor-label">@Html.LabelFor(l => l.OwnerPhone)</div>
                                <div class="editor-field">@Html.EditorFor(l => l.OwnerPhone) @Html.ValidationMessageFor(l => l.OwnerPhone)</div>
                                <div class="editor-label">@Html.LabelFor(l => l.OwnerId)</div>
                                <div class="editor-field">@Html.EditorFor(l => l.OwnerId) @Html.ValidationMessageFor(l => l.OwnerId)</div>
                             </text>);

              tabstrip.Add()
                  .Text("Address")
                  .Content(@<text>
    // Code exactly like that in Owner, but with different fields
                          </text>);
          })
          .SelectedIndex(0)
          .Render();
    }

    Any thoughts on what can be done to fix the display?

    Thanks.

    Reply

  • Dan Miser avatar

    Posted on Feb 28, 2012 (permalink)

    This is fixed in 2012.1.214

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Telerik MVC Extensions (superseded) > TabStrip > TabStrip in EditorFor
Related resources for "TabStrip in EditorFor"

ASP.NET MVC TabStrip Features  |  Documentation  |  Demos  |  Telerik TV ]