Tuesday, December 9, 2014

Message Box using Telerik Rad Window Manager

Message Box using Telerik Rad Window Manager
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnablePageHeadUpdate="False" EnableAJAX="true">
        </telerik:RadAjaxManager>
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="false"  DestroyOnClose="true">
</telerik:RadWindowManager>
public void ShowMessage(string message, int x = 350, int y = 150)
{
  RadWindowManager window = null;
  window = (RadWindowManager)this.Page.FindControl("RadWindowManager1");
  window.DestroyOnClose = true;
  window.EnableShadow = false;
  window.RadAlert(message, x, y, "Information", "");
 }


//To call

ShowMessage(“Message that needs to be displayed”);


No comments:

Post a Comment