$("#dialog").ejDialog({
closeOnEscape: true,
contentType: "iframe",
contentUrl: url,
close: function (args) { window.location.reload(); }
});
$("#dialog").ejDialog("open");
Thanks,
Catalina
function onDialogClose(args) { $("#lognForm").ejDialog("close"); } |
[PartialView] @model SyncfusionMvcApplication51.OrdersView
<div> <div> @Html.Label("OrderID") </div> <div> @Html.TextBox("OrderID", Model.OrderID.ToString(), new { @readonly = "readonly" }) </div><br /> . . . .
<div class="col-md-3"> @(Html.EJ().Button("save").Text("Save").ClientSideEvents(eve => eve.Click("onClose"))) @*bind an event to button*@ </div> <div class="col-md-3"> @(Html.EJ().Button("cancel").Text("Cancel").ClientSideEvents(eve => eve.Click("onClose"))) @*bind an event to button*@ </div> <br /> <br /> </div> function onClose(args) { $("#partialgrid").ejDialog("close"); //close dialog |
function recordDblClick(args) { var records = this.getSelectedRecords()[0]; //getSelected records value $.ajax({ url: "/Grid/GetData", type: "POST", contentType: "application/json", data: JSON.stringify({ value: records }), success: function (data) { $("#partialgrid").html(data); ej.widget.init($("#partialgrid")); //initialize the ejwidgets
$("#partialgrid").ejDialog("open");
}, error: function (xhr) { alert('error');
} });
|
function recordDblClick(args) { var records = this.getSelectedRecords()[0]; //getSelected records value $.ajax({ url: "/Grid/GetData", type: "POST", contentType: "application/json", data: JSON.stringify({ value: records }), success: function (data) { $("#partialgrid").html(data); ej.widget.init($("#partialgrid")); //initialize the ejwidgets
$("#partialgrid").ejDialog( { enableResize: false, width: 300, width: 300, close: "onDialogClose" });
$("#partialgrid").ejDialog("open");
}, error: function (xhr) { alert('error');
} });
|
Sample: Sample-123346
Regards,
Balaji Marimuthu