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

radalert radconfirm in javascript

2 Answers 288 Views
Window
This is a migrated thread and some comments may be shown as answers.
usr9999
Top achievements
Rank 1
usr9999 asked on 17 Jul 2010, 06:31 AM
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 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 19 Jul 2010, 11:03 AM
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
0
usr9999
Top achievements
Rank 1
answered on 19 Jul 2010, 02:51 PM
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,
Tags
Window
Asked by
usr9999
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
usr9999
Top achievements
Rank 1
Share this question
or