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

Editor not showing within tabstrip

2 Answers 123 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 06 Jun 2013, 02:54 PM
Has anyone successfully placed the RadEitor within a TabStrip control. ? The Radeditor is always displayed outside of the tabstrip at the top of the form (see attached image).

//sample code
@(Html.Kendo().TabStrip()
    .Name("configuration")
    .SelectedIndex(0)
    .Items(tabstrip =>
     {
     tabstrip.Add()
         .Text("General Settings")
         .Content(@<text>
                   @Html.LabelFor(model => model.Appcutoffdate)    
                   @Html.EditorFor(model => model.Appcutoffdate)           
               </text>);
     tabstrip.Add()
        .Text("Email")        
        .Content(@<text>
                   @{ Html.Kendo().EditorFor(model => model.EmailAcceptBody)
                      .Name("EmailAcceptBody")
                      .Encode(false)
                      .Render();                                                                              
                      }            
               </text>);
     })
)


Thanks
Mike

2 Answers, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 10 Jun 2013, 06:35 AM
Hello Mike,


To achieve this you should initialize the TabStrip in a code block too and call it's Render() method.
E.g.
@{Html.Kendo().TabStrip()
    .Name("configuration")
    .SelectedIndex(0)
    .Items(tabstrip =>
     {
         tabstrip.Add()
             .Text("General Settings")
             .Content(@<text>
                   ...     
               </text>);
         tabstrip.Add()
            .Text("Email")
            .Content(@<text>
                   @{ Html.Kendo().Editor()
                      .Name("EmailAcceptBody")
                      .Encode(false)
                      .Render();                                                                             
                      }           
               </text>);
     })
     .Render();
}

I wish you a great day!

 

Regards,
Dimiter Madjarov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Mike
Top achievements
Rank 1
answered on 12 Jun 2013, 02:51 PM
Thanks Dimiter - that did the trick !

Regards
Mike
Tags
Editor
Asked by
Mike
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Mike
Top achievements
Rank 1
Share this question
or