This is a migrated thread and some comments may be shown as answers.

Problem with web user control

1 Answer 61 Views
Grid
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 02 Nov 2011, 07:27 PM
Hi,

I have a little problem. I'm currently using a web user control (pop-up mode)  for inserting data in my grid. When my web user control appears, it is in a "modal state", so I cannot access the window behind. In my web user control, I'm using asp:requiredFieldValidator to validate some fields according to a value in radComboBox. So, by example, if the value in the radComboBox is "A", I need to validate field 1 and 2, but if the the value is "B", I only need to validate field 2. So, I'm using server-side code to put "enabled" to false or true. My problem is that I when I'm calling server-side method, the "modal state" is lost for a couple a seconds or two. So, during theses seconds, I can access the window behind. Is anyone know how to correct this behavior so the window will alway be in "modal state" ?

Thank you
David 

1 Answer, 1 is accepted

Sort by
0
Accepted
Maria Ilieva
Telerik team
answered on 07 Nov 2011, 01:10 PM
Hello David,

This is the default behaviour for any modal window. If the focus is kept on the control behind the window its get enabled for some seconds during the response from the server is returned. Possible approach on this vase is to disable the needed controls on the page during the specific request.

All the best,
Maria Ilieva
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Grid
Asked by
David
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or