-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDefault.aspx.cs
36 lines (30 loc) · 1.56 KB
/
Default.aspx.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using System;
namespace Solution {
public partial class Default : System.Web.UI.Page {
protected void Page_Load(object sender, EventArgs e) {
if (!IsPostBack) CustomizePopupControlAppearance();
}
void CustomizePopupControlAppearance() {
ASPxPopupControl1.Modal = true;
// Make the ASPxPopupControl's elements invisible
ASPxPopupControl1.BackColor = System.Drawing.Color.Transparent;
ASPxPopupControl1.Border.BorderWidth = 0;
ASPxPopupControl1.ContentStyle.Paddings.Padding = 0;
ASPxPopupControl1.ShowHeader = false;
ASPxPopupControl1.ShowSizeGrip = DevExpress.Web.ShowSizeGrip.False;
ASPxPopupControl1.ShowShadow = false;
// Specify that the ASPxPopupControl can only be invoked and closed programmatically
ASPxPopupControl1.PopupAction = DevExpress.Web.PopupAction.None;
ASPxPopupControl1.CloseAction = DevExpress.Web.CloseAction.None;
// Make the ASPxPopupControl displayed centered within the ASPxGridView
ASPxPopupControl1.PopupElementID = "ASPxGridView1";
ASPxPopupControl1.PopupHorizontalAlign = DevExpress.Web.PopupHorizontalAlign.Center;
ASPxPopupControl1.PopupVerticalAlign = DevExpress.Web.PopupVerticalAlign.Middle;
}
protected void btnReloadDemo_Click(object sender, EventArgs e) {
// Reset the grid's data source
Session["GridDataSource"] = null;
Response.Redirect("Default.aspx");
}
}
}