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

Partial View in Window, DatePicker not Getting Style

1 Answer 270 Views
Window
This is a migrated thread and some comments may be shown as answers.
Umut
Top achievements
Rank 1
Umut asked on 10 Mar 2015, 03:50 PM
I have a partial view in a Window. 

@model Umki2.Areas.Fbr.Models.FbrFitUp
 
 
            @(Html.Kendo().DatePicker()
              .Name("FitUpDate")
              .Value("10/10/2011")
              .HtmlAttributes(new { style = "width:150px" })
            )

From the main view, i open the window with jquery function.

function OpenFitUpForm(e) {
        e.preventDefault();
        var dataItem = this.dataItem($(e.currentTarget).closest("tr"));
        var wnd = $("#PopUpForm").data("kendoWindow");
        $("#PopUpForm").kendoWindow({
            content: {
                url: "/wlb/wlbexplorer/_FitUpForm",
                data: { id: dataItem.Id },
            },
            width: 500,
            title: "FitUp Report",
            modal: true,
            visible: false,
            draggable: true,
        });
        wnd.center().open();
    }


But the result as seen in the attachment. 

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 12 Mar 2015, 09:51 AM
Hello Umut,

It looks like the DatePicker is not initialized at all, which can happen if there is a Javascript error on the page. Please check.

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
Window
Asked by
Umut
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or