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

RadWindow Doesn't Close When Used with Validation Group

1 Answer 103 Views
Window
This is a migrated thread and some comments may be shown as answers.
Rodney
Top achievements
Rank 2
Rodney asked on 27 May 2016, 12:30 PM

I've read a number of articles about this and thought I took the necessary steps to correct it, but it still isn't working.

I've got a RadWindow with a number of controls defined on it that are all in the same ValidationGroup. On the button to save the stuff I've specified:

ValidationGroup="attachmentValidations"

When I do this my data is saved, but the RadWindow will not close.

If I remove the above and add:

CausesValidation="true"

It will close the window, but doesn't appear to do any validation.

I've added the following lines per your help article:

<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />

Still no luck. Any help would be appreciated.

 

Rodney

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 27 May 2016, 12:54 PM

Hi Rodney,

Most probably, there is another validation group or a set of validators without a validation group on the page that are preventing the postback. They do not necessarily have to be in the RadWindow ContentTemplate.

Thus, I suggest you consider my offer from your other thread and see whether migrating the contents of the RadWindow to a standalone page is feasible, because doing that is likely to reduce such problems.

Regards,

Marin Bratanov
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Window
Asked by
Rodney
Top achievements
Rank 2
Answers by
Marin Bratanov
Telerik team
Share this question
or