Validation

5 posts, 0 answers
  1. Aswathy
    Aswathy avatar
    3 posts
    Member since:
    Jun 2016

    Posted 04 Jul Link to this post

    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.
  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3596 posts

    Posted 04 Jul Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Aswathy
    Aswathy avatar
    3 posts
    Member since:
    Jun 2016

    Posted 04 Jul in reply to Marin Bratanov Link to this post

    Thank you for the reply. I vl try and reply.
  5. Aswathy
    Aswathy avatar
    3 posts
    Member since:
    Jun 2016

    Posted 07 Jul Link to this post

    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.
  6. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3596 posts

    Posted 07 Jul Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017