Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
143506 | Mar 23,2019 04:25 PM UTC | Mar 25,2019 07:25 AM UTC | ASP.NET MVC - EJ 2 | 1 |
![]() |
Tags: Dialog |
@Html.EJS().Dialog("ajax").Visible(false).BeforeOpen("beforeOpen").IsModal(true).Render() @* Dialog component*@
<script>
function beforeOpen() { // Triggered when before open the dialog component
var ajax = new ej.base.Ajax('/Home/PartialView1/?Person2', 'GET', true);
ajax.send().then();
ajax.onSuccess = function (data) { // Triggered when ajax post succeeded
$("#ajax_dialog-content").html(data)
};
}
</script> |
<div id="one">
Parial view page content
</div>
@Html.EJS().ScriptManager() @* Please add this code, If you are using any syncfusion component on parital view page content.*@
|
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.