How to add Telerik control in another telerik control

2 posts, 0 answers
  1. Shakil
    Shakil avatar
    7 posts
    Member since:
    May 2014

    Posted 03 Jan 2015 Link to this post

    This is my code i use this code to add control in telerik control but its showing a error.


    @(Html.Kendo().Window()
        .Name("window")
        .Draggable()
        .Title("Window Popup")
        .Width(600)
        .Height(200)
        .Visible(false)
        .Content(@<text>
            @Html.Label("Select Image")
            @Html.Kendo().Upload();
            </text>)
    )
  2. Dimo
    Admin
    Dimo avatar
    8472 posts

    Posted 05 Jan 2015 Link to this post

    Hello Shakil,

    You must be getting a "Name cannot be blank." server-side exception for the Upload widget.

    http://docs.telerik.com/kendo-ui/aspnet-mvc/fundamentals#configuration-Name

    In different nesting scenarios, you may encounter a different problem, related to multiple <text> tags and a Razor view engine limitation:

    http://docs.telerik.com/kendo-ui/aspnet-mvc/troubleshooting#nesting-kendo-ui-wrappers-produces-a-server-side-exception-when-using-the-razor-view-engine

    Regards,
    Dimo
    Telerik

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top