radwindow using asp button runat server

3 posts, 1 answers
  1. RJ
    RJ avatar
    395 posts
    Member since:
    Oct 2006

    Posted 22 Nov 2009 Link to this post

    Hi,
    How can I use radwindow with asp button runat server. At the moment, it closes my radwindow after the postback. Reason why I use asp button coz I will update first needed changes before it will show radwindow to show the preview. Using input type button works and it doesn't close my radwindow but then I cant update preview for my rad window for I need to save first some data to database before showing its preview..

    Any help would be greatly appreciated.

    Thanks in advance,
    RJ
  2. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 23 Nov 2009 Link to this post

    Hello,

    One suggestion would be showing the radwindow from code behind, after your code to updating is executed.

    CS:
     
        protected void Button1_Click(object sender, EventArgs e) 
        { 
            // Execute your code to update needed changes 
            RadWindow newWindow = new RadWindow(); 
            newWindow.NavigateUrl = "http://www.telerik.com"
            newWindow.VisibleOnPageLoad = true
            RadWindowManager1.Windows.Add(newWindow); 
           // RadWindowManager1.Windows[0].VisibleOnPageLoad = true; 
        } 
    [RadWindowManager1 is added on the page]

    Also checkout the documentation link to know more about setting server side properties of radwindow.

    -Shinu.
  3. RJ
    RJ avatar
    395 posts
    Member since:
    Oct 2006

    Posted 23 Nov 2009 Link to this post

    Thanks a lot Shinu. It works like a charm..
    Though I just got 1 question. How can I make Behaviors="Close,Move,Resize" work in serverside? Behaviors can be set just once on serverside or I just dont know how..
    Thanks again.
Back to Top