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;
……………….. |