show notification after update or insert

2 posts, 0 answers
  1. shervinrv
    shervinrv avatar
    10 posts
    Member since:
    May 2007

    Posted 29 Jul 2014 Link to this post

    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

    how can i do this ?
    thank you
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 29 Jul 2014 in reply to shervinrv Link to this post


    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.

    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);
            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.

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

Back to Top