Hi All,
I have the follow scenario:
There are 2x RadDateTimePickers on a RadWindow along with a checkbox. When the checkbox is checked they both become enabled.
I pass the dates back to my main window when the RadWindow is closed. I would like to prevent the RadWindow from closing and alert the user when their values are invalid. Examples: The input fields are enabled, but empty. The second field is larger than the first, etc.
The main problem here is that my close function which closes the RadWindow fires before the form validation. I read that to avoid this I should move my close function to server-side, but I am not sure this is a viable solution because I pass arguments back from the RadWindow to the main window.
How can I fix this?
Sean
I have the follow scenario:
There are 2x RadDateTimePickers on a RadWindow along with a checkbox. When the checkbox is checked they both become enabled.
I pass the dates back to my main window when the RadWindow is closed. I would like to prevent the RadWindow from closing and alert the user when their values are invalid. Examples: The input fields are enabled, but empty. The second field is larger than the first, etc.
The main problem here is that my close function which closes the RadWindow fires before the form validation. I read that to avoid this I should move my close function to server-side, but I am not sure this is a viable solution because I pass arguments back from the RadWindow to the main window.
How can I fix this?
Sean