Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7860479
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T22:18:17+00:00 2026-06-02T22:18:17+00:00

I am using DevExpress v10. I have an ASP.NET page with AspxPopupControl. The AspxPopupControl

  • 0

I am using DevExpress v10. I have an ASP.NET page with AspxPopupControl. The AspxPopupControl contains several textboxes AspxTextBox.

I need the following functionality: when user clicks Close button in header of the AspxPopupControl popup, to check if something has been changed in the AspxTextBox fields since the popup was opened. If it has, a confirmation ‘do you really want to close the window without saving?’

I intended to implement it as the following: to handle client-side event ValueChanged for the AspxClientTextBox controls. In such handler I could set a flag, and later analyze it in client-side handler of Closing event (AspxClientPopupControl)

But the problem is: if I change something in an AspxTextBox and then click the Close button immediately, Closing event will be fired FIRST and ValueChanged event will be fired AFTER Closing!

This does not allow me to do what I want.

Is any solution possible here?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T22:18:20+00:00Added an answer on June 2, 2026 at 10:18 pm

    The Closing event receives as an argument an ASPxClientPopupWindowCancelEventArgs which you can use to cancel the closing event.

    You can do something along this lines:

    <dx:ASPxPopupcontrol>
        ...
        <ClientSideEvents Closing="popup_Closing" />
    </dx:ASPxPopupControl>
    
    <script type="text/javascript">
    
        function popup_Closing(s,e)
        {
            if (textbox1.GetText() == '' || ...) // or logic here
            {
                e.cancel = !confirm('You've empty fields. Continue anyway?');
            }
        }
    
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Iam using Devexpress aspxgridview control in asp.net. I want to reload the page on
Has anybody had any hands-on experience using Devexpress ASP.NET components with Delphi Prism? At
I am currently programming within Visual Studio 2010 using VB.Net and DevExpress V10.2 Winforms.
I am using devexpress asp:GridView in asp.net with two columns: status and percentage The
I am using DevExpress ASPXPivotGrid control for my ASP.NET site.I am also using DevExpress
I'm using devexpress and i have two problems. My insert stored procedure work fine.
I have D2006 and I am using DevExpress QuantumGrid 6 in a project. I
I have a base class, defined as below (I'm also using DevExpress components): public
I am using Entity Framework and DevExpress 10.5 XtraGrid. Imagine that we have entities
Is there any example for a Real Time Chart using the DexExpress in ASP.Net?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.