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

[Solved] Pop Up Dialog in Place of Standard Message

3 Answers 124 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 20 Feb 2008, 05:27 AM
Hi

In place of the standard messages at the bottom of the radgrids as shown in the examples on save / insert etc I would like to know if it is possible to display a dialog similar to the standard javascript "alert" dialog.

I would also like to be able to do this as part of an update or insert in the updatecommand and insert command events.

Thanks

Richard

3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 20 Feb 2008, 12:18 PM
Hi Richard,

Here is an example:

        private void DisplayMessage(string text)
        {
            RadGrid1.Controls.Add(new LiteralControl(string.Format("<script type='text/javascirpt'>alert('{0}');</script>", text)));
        }

All the best,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Richard
Top achievements
Rank 1
answered on 20 Feb 2008, 11:47 PM
Vlad

Thanks - this works great if you are not using Ajax.  How can you get it to work if Ajax is enabled?

Richard
0
Accepted
Vlad
Telerik team
answered on 21 Feb 2008, 08:29 AM
Hi Richard,

You can use RadAjaxManager Alert() method to achieve the same.

Best wishes,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Richard
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Richard
Top achievements
Rank 1
Share this question
or