Hello:
In the following example, the 1st popup receives a dynamic passed ID value, (use the Refresh() ), whereas the 2nd popup uses the fixed ID value. There is no difference displaying these 2 popup shown in the Browser, all have scrollbars, and scroll correctly.
However, when the website (MVC4 razor) is access in tablet, i,e. iPad, the 1st popup does NOT scroll, it moves with the background, and anything longer than 400px height, it cuts off. the 2nd popup scrolls by itself, the background stays, this is the correct outcome, the same as Browser.
I use these two popup just to show that the Refresh() created windows doesn't scroll correctly in tablet devices.
Please advise
Thank you
In the following example, the 1st popup receives a dynamic passed ID value, (use the Refresh() ), whereas the 2nd popup uses the fixed ID value. There is no difference displaying these 2 popup shown in the Browser, all have scrollbars, and scroll correctly.
However, when the website (MVC4 razor) is access in tablet, i,e. iPad, the 1st popup does NOT scroll, it moves with the background, and anything longer than 400px height, it cuts off. the 2nd popup scrolls by itself, the background stays, this is the correct outcome, the same as Browser.
I use these two popup just to show that the Refresh() created windows doesn't scroll correctly in tablet devices.
<
div
id
=
"divEleWrapper"
>
@(Html.Kendo().Grid<
ElementViewModel
>()
.Name("gridEle")
.Columns(cols =>
{
cols.Bound(e => e.EleNum)
.ClientTemplate("<
span
id
=
'btn_#=EleID#'
onClick
=
'showDetail(#:EleID#)'
>#:EleNum#</
span
>");
cols.Bound(e => e.EleNum)
.ClientTemplate("<
span
id
=
'btn2_#=EleID#'
onClick
=
'showDetail2(#:EleID#)'
>#:EleNum#</
span
>");
})
.DataSource(dataSource => dataSource
.Ajax()
.Read(read => read.Action("GetElements", "Rating", pi).Type(System.Web.Mvc.HttpVerbs.Get))
)
)
</
div
>
<
div
>
@{Html.Kendo().Window()
.Name("winStandard")
.Title("Detail")
.Visible(false)
.Modal(true)
.Width(600)
.Height(400)
.Draggable()
.Scrollable(true)
.Render();
}
@{Html.Kendo().Window()
.Name("winStandard2")
.Title("Detail")
.Visible(false)
.Modal(true)
.Width(600)
.Height(400)
.Draggable()
.Content(@<
text
>
@{Html.RenderAction("GetStandard", "Standard", new { eID = 54805 });}
</
text
>).Render();
}
</
div
>
<
script
>
function showDetail(eID) {
var dialog = $("#winStandard").data("kendoWindow");
dialog.refresh({
url: "./Standard/GetStandard",
data: { eID: eID }
});
dialog.center().open();
}
function showDetail2(eID) {
$("#winStandard2").data("kendoWindow").center().open();
}
</
script
>
Please advise
Thank you