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

How to add Telerik control in another telerik control

1 Answer 432 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Shakil
Top achievements
Rank 1
Shakil asked on 03 Jan 2015, 06:47 AM
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>)
)

1 Answer, 1 is accepted

Sort by
1
Dimo
Telerik team
answered on 05 Jan 2015, 03:51 PM
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.

Tags
Grid
Asked by
Shakil
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or