We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to set the position for the Delete Confirm Dialog?

This Knowledge base explains how to set the position for the Delete Confirm Dialog of Grid.

Solution:

By default, the delete confirmation dialog will be opened to the center of the Grid height. If the Grid has large number of records in a page then the delete confirmation dialog may appear out of sight. To avoid this behavior the position of the Delete Confirm Dialog can be changed by using the dataBound event of Grid and beforeOpen event of the Dialog.

The following code example demonstrates how to set the position for the Delete Confirm Dialog of Grid.

 

1.Render the Grid control.

HTML

JavaScript

MVC

 

C#

 

ASPX

 

C#

 

ASP.NET CORE

 

C#

 

Angular

HTML

 

TS

 

2. In the dataBound event of Grid using beforeOpen event of the Dialog we have set the position of the Dialog based on the row height and row position.

JS

 

Result:

Figure 1:Adjusting the position of the delete confirmation dialog

Article ID: Published Date: Last Revised Date: Platform: Control:
9254 09/06/2018 09/06/2018 JavaScript ejGrid
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon