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

show notification after update or insert

1 Answer 89 Views
Grid
This is a migrated thread and some comments may be shown as answers.
shervinrv
Top achievements
Rank 1
shervinrv asked on 29 Jul 2014, 07:14 PM
Hello.
excuse me if my english is not good .
i have a radgrid and after update command or insert command  i use this code to show notification.

  RadGrid1.Controls.Add(New LiteralControl ("My Text"))

it show just a text line under radgrid .
i want show a jquery popup notification like http://simplemodal.plasm.it/

how can i do this ?
thank you

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 1
answered on 30 Jul 2014, 04:59 AM
Hi,

You can use Telerik RadWindow popups to show alert, confirm or prompt. Please see this demo for details. Please try the following code snippet to call a RadAlert from the Update command.

C#:
protected void RadGrid1_UpdateCommand(object sender, GridCommandEventArgs e)
    {
        //code to update
 
        string radalertscript = "<script language='javascript'> window.onload = function(){radalert('SuccessFully updated the row', 330, 210);}</script>";
        Page.ClientScript.RegisterStartupScript(this.GetType(), "radalert", radalertscript);
 
        OR
 
        RadWindowManager1.RadAlert("SuccessFully updated", 330, 180, "", "");
    }


A RadWindowManager must be present on the form for you to use the radalert, radconfirm, and radprompt dialogs. The RadWindow objects that implement the dialogs get the setting for their Skin property from the RadWindowManager, resulting in a dialog that blends into the design of your Web site more completely than the corresponding browser dialogs.

ASPX:
<telerik:RadWindowManager ID="RadWindowManager1" runat="server"> </telerik:RadWindowManager>

Thanks,
Princy.
Tags
Grid
Asked by
shervinrv
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
Share this question
or