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

Validation

4 Answers 65 Views
Window
This is a migrated thread and some comments may be shown as answers.
Aswathy
Top achievements
Rank 1
Aswathy asked on 04 Jul 2016, 11:05 AM
My form has two dropdownlist with initial value '-Select-', some text boxes and fileupload with restrictions in extension and size. I need validation summary in Radwindow and also need individual validation in radwindow itself. Please provide solution. Stuck for many days.

Thank you.

4 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 04 Jul 2016, 11:13 AM

Hi Aswathy,

The following code library shows an example: http://www.telerik.com/support/code-library/showing-a-validationsummary-in-a-radwindow.

The following demo is also very similar: http://demos.telerik.com/aspnet-ajax/notification/examples/waiariasupport/defaultcs.aspx. It uses RadNotification and it shouild serve your case nicely. Otherwise, you can use the same approach and the API of the RadWindow to implement the same behavior.

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.
0
Aswathy
Top achievements
Rank 1
answered on 04 Jul 2016, 11:31 AM
Thank you for the reply. I vl try and reply.
0
Aswathy
Top achievements
Rank 1
answered on 07 Jul 2016, 06:24 AM
Hai, I succeded with dropdownlist and textbox. but I cant find a solution for fileupload with restrictions. There is extension and size restriction. Please provide solution.
0
Marin Bratanov
Telerik team
answered on 07 Jul 2016, 07:37 AM

Hello Aswathy,

You should implement the upload validation in a similar fashion as the others. For example, you can populate the ValidationSummary and show it so the notification/window will show up.

You may find interesting this demo that shows how to validate a file upload in order to incorporate it in your actual logic: http://demos.telerik.com/aspnet-ajax/asyncupload/examples/validation/defaultcs.aspx.

Regards,

Marin Bratanov
Telerik by Progress
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
Aswathy
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Aswathy
Top achievements
Rank 1
Share this question
or