check if RadWindowManager exists

2 posts, 0 answers
  1. Albert Shenker
    Albert Shenker avatar
    579 posts
    Member since:
    Mar 2004

    Posted 22 Dec 2011 Link to this post

    Is there a server-side way to determine if a RadWindowManager (name instance or generic) exists on a page?
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 22 Dec 2011 Link to this post

    Hello,

    Try the following code .
    CS:
    protected void btnAlert_Click(object sender, EventArgs e)
     {
        RadWindowManager windowManager =FindControl(this, "WindowManager") as RadWindowManager;
         if (windowManager != null) //RadWindowManager exist or not
         {
              //your code
         }
      }

    Thanks,
    Princy.
Back to Top