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

radwindow using asp button runat server

2 Answers 73 Views
Window
This is a migrated thread and some comments may be shown as answers.
RJ
Top achievements
Rank 1
RJ asked on 23 Nov 2009, 12:30 AM
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 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 23 Nov 2009, 06:43 AM
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.
0
RJ
Top achievements
Rank 1
answered on 24 Nov 2009, 02:49 AM
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.
Tags
Window
Asked by
RJ
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
RJ
Top achievements
Rank 1
Share this question
or