Oct 02, 2015, 11:12 AM
[CLOSED] MessageBox doesn't show
Please take a look at this.
View Index.cshtml:
Remark:
For PDF viewer I am using Adobe Plugin. I saw some threads and tried some things, but I could not resolve this problem.
View Index.cshtml:
@{
ViewBag.Title = "Index";
}
<h2>Index</h2>
@Html.X().ResourceManager()
@(
Html.X().Panel().Loader(Html.X().ComponentLoader().Url(Url.Action("RenderDocument")).LoadMask(lm => lm.ShowMask = true)).Height(500)
.TopBar
(
Html.X().Toolbar()
.Items
(
Html.X().Button().Icon(Icon.CommentAdd).ToolTip("Add comment").OnClientClick("Ext.MessageBox.show({title: 'Comment', msg: 'Text:',width: 300,buttons: Ext.MessageBox.OKCANCEL,multiline: true});")
)
)
)
View ContentView.cshtml@model string
<iframe src="@Model" width="100%" height="100%" />
Controler:public ActionResult Index()
{
return View();
}
public ActionResult RenderDocument(string objectId)
{
return PartialView("ContentView", "/Test.pdf");
}
On button click MessageBox does not show in IE, but page gets grayed as if it is shown. If You put anything else except pdf, it works. Remark:
For PDF viewer I am using Adobe Plugin. I saw some threads and tried some things, but I could not resolve this problem.
Last edited by Daniil; Jan 20, 2016 at 11:35 AM.
Reason: [CLOSED]