@using Infragistics.Web.Mvc
<!DOCTYPE html>
<html>
<head>
<title></title>
<!-- Ignite UI for jQuery Required Combined CSS Files -->
<link href="http://cdn-na.infragistics.com/igniteui/2024.1/latest/css/themes/infragistics/infragistics.theme.css" rel="stylesheet" />
<link href="http://cdn-na.infragistics.com/igniteui/2024.1/latest/css/structure/infragistics.css" rel="stylesheet" />
<script src="http://ajax.aspnetcdn.com/ajax/modernizr/modernizr-2.8.3.js"></script>
<script src="http://code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="http://code.jquery.com/ui/1.11.1/jquery-ui.min.js"></script>
<!-- Ignite UI for jQuery Required Combined JavaScript Files -->
<script src="http://cdn-na.infragistics.com/igniteui/2024.1/latest/js/infragistics.core.js"></script>
<script src="http://cdn-na.infragistics.com/igniteui/2024.1/latest/js/infragistics.lob.js"></script>
</head>
<body>
<style type="text/css">
.ui-igpopover > .ui-widget-content {
padding: 5px;
background-color: #f9e6e7;
-moz-border-radius: 8px;
-webkit-border-radius: 8px;
border-radius: 8px;
border-left-color: none !important;
}
.ui-igpopover-arrow-left {
border-right-color: #f9e6e7;
}
.ui-igpopover-arrow-top {
border-bottom-color: #f9e6e7;
}
.ui-igpopover-arrow-bottom {
border-top-color: #f9e6e7;
}
.ui-igpopover-arrow-right {
border-left-color: #f9e6e7;
}
</style>
<div id="formPopover">
@(Html.Infragistics()
.TextEditor()
.ID("userNameEditor")
.TextMode(TextEditorTextMode.Text)
.Height("30px")
.PlaceHolder("Username")
.HtmlAttributes(new Dictionary<string, object> { { "title", "Please enter your username or email address" } })
.Render()
)
<br />
<br />
@(Html.Infragistics()
.TextEditor()
.ID("passwordEditor")
.TextMode(TextEditorTextMode.Password)
.Height("30px")
.PlaceHolder("Password")
.HtmlAttributes(new Dictionary<string, object> { { "title", "Please enter your password" } })
.Render()
)
<br />
<br />
</div>
<input type="button" id="btnSubmit" />
@(Html.Infragistics().Popover()
.ID("formPopover input[title]")
.Direction(PopoverDirection.Right)
.Position(PopoverPosition.Balanced)
.HeaderTemplate(headerTemplate =>
{
headerTemplate.CloseButton(false);
})
.ShowOn(ShowOn.MouseEnter)
.Render())
<script>
$( function ()
{
$( "#btnSubmit" ).igButton( {
labelText: "Sign in",
click: function ()
{
showFormPopover($('#formPopover input[title]'));
}
} );
function showFormPopover( target )
{
target.igPopover( "show");
}
} );
</script>
</body>
</html>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace IgniteUI.SamplesBrowser.Controllers
{
public class PopoverController : Controller
{
//
// GET: /Popover/
[ActionName("aspnet-mvc-helper")]
public ActionResult AspNetMvcHelper()
{
return View("aspnet-mvc-helper");
}
}
}