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

Using RadAlert to display errors

1 Answer 70 Views
Window
This is a migrated thread and some comments may be shown as answers.
Eric Turner
Top achievements
Rank 1
Eric Turner asked on 01 Apr 2009, 02:17 PM
I have a radgrid and when a row is selected and a button is pressed I process the button and go to another page to process the information.

But if no row is selected I want to issue an alert telling the user to select a row and stay on the same page.  Just how can I make this happen?

I am able to display an alert using the javascript page load function and by adding a function call to the onClientClicked Event.  But how can I call the rad alert based on what happens in the server side button code? 

I would also like to do the same thing on another page passing it an html string of errors that occur that need to be corrected before allowing the user to submit the page.  So somehow I would need to pass this string to the javascript function.

I guess I'm a little green in the asp.net to javascript relationship so any help is appreciated!

thanks

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 01 Apr 2009, 02:23 PM
Hi Eric,

I believe that the following KB article will be of help:
http://www.telerik.com/support/kb/aspnet-ajax/window/calling-radalert-from-codebehind.aspx




Best wishes,
Georgi Tunev
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
Window
Asked by
Eric Turner
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or