Giter Site home page Giter Site logo

devexpress-examples / asp-net-web-forms-grid-delete-confirm-dialog-with-dont-ask-me-again-option Goto Github PK

View Code? Open in Web Editor NEW
1.0 56.0 1.0 140 KB

Use the ASPxPopupControl to implement a delete confirmation dialog with a "don't ask me again" option.

License: Other

C# 22.75% ASP.NET 53.81% Visual Basic .NET 23.44%
dotnet aspxgridview asp-net aspxdataeditors gird

asp-net-web-forms-grid-delete-confirm-dialog-with-dont-ask-me-again-option's Introduction

Grid View for ASP.NET Web Forms - How to implement a delete confirmation dialog with a "don't ask me again" option

This example demonstrates how to implement a delete confirmation dialog with an option to prevent its display for subsequent grid row deletions.

Delete Confirmation Dialog

Implementation Details

The confirm dialog is based on the ASPxPopupControl. The popup contains the dialog content wrapped in a WebUserControl.

Note: In this example, the "Don't ask for confirmation" check box's value is stored in a client JavaScript variable (dontAskConfirmation). We recommend that in a real-life application, you save this value to a user-specific storage such as cookies or user profile settings.

The example application uses the following techniques:

  • The ID field value of the processed row is stored in the client rowVisibleIndex variable.

  • The ASPxPopupControl is made transparent so that it displays its child ASPxRoundPanel as the dialog's immediate container.

  • The ASPxPopupControl is used in modal mode and configured to always be displayed at the Grid View's center.

  • The "Yes" button is the dialog's default button (its ID is assigned to the ASPxRoundPanel's DefaultButton property), so users can press Enter to submit the dialog. The "Yes" button programmatically receives the input focus after the dialog is shown.

Files to Review

Documentation

More Examples

asp-net-web-forms-grid-delete-confirm-dialog-with-dont-ask-me-again-option's People

Contributors

devexpressexamplebot avatar eugeniyburmistrov avatar natashaash avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.