Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 78072

How do I get the dialogue result of the confirm window ?

$
0
0

This seems really convoluted way to do a simple thing... You really can't just get the result from a confrim?

I'm looking to essentially replace MessageBox with these functions allowing my own styling and themes to fit with my application.  What I need is to be able to do something like:

 

if(confirm.DialogResult==true)

{ ...do something...}

else

{...do something else...}

If I read this right it looks like I would have to create a separate method to handle the result of the dialog, effectively pushing me out of the method I'm in and adding quite a bit of complexity to the code.  Not to mention that if I need variables from the method I'm calling from I would have to store them globally somehow or...??? I'm not sure.  Those static methods are always modal so why can they not just return the dialog result?


Viewing all articles
Browse latest Browse all 78072

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>