Hi Malcom,
Thanks for contacting Syncfusion Support.
Query#:- At the moment it's opening where ever the grid is, but the grid is sometimes quite far down on the page.
We have checked your query and achieved your requirement using ActionComplete event of the Grid. By using the target property of ejdialog we can change the dialog position. And also Set the desire target to the dialog in the beforeOpen event.
@(Html.EJ().Grid<object>("FlatGrid")
………………………
.Columns(col =>
{
…………………..
})
.ClientSideEvents(eve => { eve.ActionComplete("complete"); }))
</div>
<script type="text/javascript">
function complete(args) {
if (args.requestType == "beginedit" || args.requestType == "add") {
$("#" + this._id + "_dialogEdit").ejDialog({
………………..
beforeOpen: function (args) {
$("#" + this._id + "_dialogEdit").ejDialog({ target: ".body-content" }) // define your target (or) here.
}
}).ejDialog("open");
}
}
</script>
|
Refer the below links for help documentation,
Please get back to us if you need any further assistance.
Regards,
Farveen sulthana T