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

Usercontrol in RadwindowManager

1 Answer 73 Views
Window
This is a migrated thread and some comments may be shown as answers.
Lubna Ansari
Top achievements
Rank 1
Lubna Ansari asked on 12 Apr 2011, 03:41 PM

 

Hi,

I am using a user control in a radwindow manager. I using a simple requiredfiled validator on my user control, But if I add ny validator the rad window doesn't get open at all. Below is code on my page.

<
telerik:RadWindowManager runat="server" RestrictionZoneID="offsetElement" KeepInScreenBounds="True"

 

 

Modal="True" Animation="Fade" ID="RadWindowManager1" EnableShadow="false" ShowOnTopWhenMaximized="false"

 

 

Width="425" Height="525" DestroyOnClose="True" Behavior="Default" InitialBehavior="None"

 

 

OnClientClose="OnClientClose">

 

 

<Windows>

 


 

<telerik:RadWindow ID="RadWindowContactEditor" runat="server" Width="430" Height="350">

 

 

<ContentTemplate>

 

 

<uc7:ucCustomerContactEdit ID="ucCustomerContactEdit1" runat="server" />

 

 

</ContentTemplate>

 

 

</telerik:RadWindow>

 


 

</Windows>

 

 

</telerik:RadWindowManager>

 


Thanks

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 13 Apr 2011, 03:48 PM

Hi Lubna,

Without your actual code I can only be guessing but please check whether the ValidationGroup has been set propertly (to the required field, the validator and to the appropriate button that should trigger it), as without that property the validator often blocks the buttons on the page until its conditions are satisfied (and in this case the user control is a part of the main page, since it is in a ContentTemplate). You can also try setting the CausesValidation property of the button that opens the RadWindow to false.



Best wishes,
Marin
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Window
Asked by
Lubna Ansari
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or