radalert radconfirm in javascript

3 posts, 0 answers
  1. usr9999
    usr9999 avatar
    41 posts
    Member since:
    Jun 2010

    Posted 17 Jul 2010 Link to this post

    I have a custom validator control which has client validation function. if the function is failed, i would like to show radalert or radconfirm rather than the regular alerts. But as both of them works only with button click or link button click, is there any other way i can achieve this function. Please help.
     
  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 19 Jul 2010 Link to this post

    Hi usr9999,

    I am not quite sure if I understand your scenario correctly. If you have a client-side validation with JavaScript, you can directly call radalert() or radconfirm() (assuming that there is a RadWindowManager on that page). If we are talking about server-side validation, since radalert and radconfirm behave the same as the standard popups, you will have to output JavaScript code that would call them on the client after the postback.


    Best wishes,
    Georgi Tunev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. usr9999
    usr9999 avatar
    41 posts
    Member since:
    Jun 2010

    Posted 19 Jul 2010 Link to this post

    Sorry!  I misread the content on the following page. I thought radalert and radconfirms can only work with the controls that have clickable events.

    http://demos.telerik.com/aspnet-ajax/window/examples/browserdialogboxes/defaultcs.aspx

    I got them working now.

    thank you,
Back to Top