Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
151080 | Jan 30,2020 11:12 AM UTC | Feb 3,2020 01:44 PM UTC | ASP.NET Web Forms | 1 |
![]() |
Tags: Grid |
Aspx page
<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent" ClientIDMode="Static">
<div>
<ej:Grid ID="OrdersGrid" runat="server" AllowPaging="true" AllowRowDragAndDrop="true" >
<EditSettings AllowEditing="true" AllowAdding="true" AllowDeleting="true" EditMode="Normal"></EditSettings>
<ToolbarSettings ShowToolbar="true" ToolbarItems="add,edit,delete,update,cancel"></ToolbarSettings>
<RowDropSettings DropTargetID="#DestGrid" />
<PageSettings PageSize="12" />
<Columns>
<ej:Column Field="OrderID" HeaderText="OrderID" IsPrimaryKey="True" TextAlign="Right" Width="75" />
<ej:Column Field="CustomerID" HeaderText="CustomerID" Width="80" />
<ej:Column Field="ShipCity" HeaderText="ShipCity" Width="80" EditType="DropdownEdit" />
<ej:Column Field="ShipCountry" EditType="DropdownEdit" HeaderText="ShipCountry" Width="80" />
<ej:Column Field="ShipName" HeaderText="ShipName" Width="80" />
</Columns>
</ej:Grid>
<ej:Grid ID="DestGrid" runat="server" AllowPaging="true" AllowRowDragAndDrop="true" >
<EditSettings AllowEditing="true" AllowAdding="true" AllowDeleting="true" EditMode="Normal"></EditSettings>
<ToolbarSettings ShowToolbar="true" ToolbarItems="add,edit,delete,update,cancel"></ToolbarSettings>
<RowDropSettings DropTargetID="#OrdersGrid" />
<PageSettings PageSize="12" />
<Columns>
<ej:Column Field="OrderID" HeaderText="OrderID" IsPrimaryKey="True" TextAlign="Right" Width="75" />
<ej:Column Field="CustomerID" HeaderText="CustomerID" Width="80" />
<ej:Column Field="ShipCity" HeaderText="ShipCity" Width="80" EditType="DropdownEdit" />
<ej:Column Field="ShipCountry" EditType="DropdownEdit" HeaderText="ShipCountry" Width="80" />
<ej:Column Field="ShipName" HeaderText="ShipName" Width="80" />
</Columns>
</ej:Grid>
</div>
</asp:Content>
|
…………..
this.OrdersGrid.RowDropSettings.DropTargetID = "#" + this.DestGrid.ClientID;
this.DestGrid.RowDropSettings.DropTargetID = "#" + this.OrdersGrid.ClientID;
……………….. |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.