-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDefault.aspx
48 lines (45 loc) · 2.8 KB
/
Default.aspx
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
37
38
39
40
41
42
43
44
45
46
47
48
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register Assembly="DevExpress.Web.v19.2, Version=19.2.15.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web" TagPrefix="dx" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script src="JavaScript.js"></script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true"></asp:ScriptManager>
<dx:ASPxGridView runat="server" OnDataBinding="grid_DataBinding" OnBatchUpdate="grid_BatchUpdate" KeyFieldName="CustomerID" ClientInstanceName="grid" ID="grid">
<Columns>
<dx:GridViewCommandColumn ShowEditButton="true" ShowNewButtonInHeader="true" ShowDeleteButton="true"></dx:GridViewCommandColumn>
<dx:GridViewDataColumn FieldName="CustomerID">
<EditFormSettings Visible="False" />
</dx:GridViewDataColumn>
<dx:GridViewDataTextColumn FieldName="CustomerName">
<PropertiesTextEdit>
<ValidationSettings RequiredField-IsRequired="true" Display="None"></ValidationSettings>
</PropertiesTextEdit>
</dx:GridViewDataTextColumn>
<dx:GridViewDataComboBoxColumn Caption="Country" FieldName="CountryID" >
<PropertiesComboBox ValueField="CountryID" ClientInstanceName="CountryID" TextField="CountryName" ValueType="System.Int32">
<ValidationSettings RequiredField-IsRequired="true" Display="None"></ValidationSettings>
<ClientSideEvents SelectedIndexChanged="CountriesCombo_SelectedIndexChanged" />
</PropertiesComboBox>
</dx:GridViewDataComboBoxColumn>
<dx:GridViewDataComboBoxColumn FieldName="CityID" Width="100px" Caption="City">
<PropertiesComboBox ValueType="System.Int32" TextField="CityName" ValueField="CityID"
ClientInstanceName="CityID">
<ValidationSettings RequiredField-IsRequired="true" Display="None"></ValidationSettings>
</PropertiesComboBox>
</dx:GridViewDataComboBoxColumn>
</Columns>
<ClientSideEvents Init="OnInit" EndCallback="OnEndCallback" BatchEditStartEditing="OnBatchEditStartEditing" BatchEditEndEditing="OnBatchEditEndEditing" />
<SettingsEditing Mode="Batch">
<BatchEditSettings ShowConfirmOnLosingChanges="true" EditMode="Row" />
</SettingsEditing>
</dx:ASPxGridView>
</div>
</form>
</body>
</html>