hello,
i was trying to drag and drop between 2 grids with template text field as per below code but the values in textbox kept reset when drag and drop a new row , Please advise in case any solution for that:
@Html.EJS().Grid("Listgrid").DataSource((IEnumerable<object>)ViewBag.Items).AllowFiltering().Columns(col =>
{
col.Field("ItemCategory").HeaderText("ItemCategory").Add();
col.Field("ItemDescription").HeaderText("ItemDescription").Add();
col.Field("QuantityAvailable").HeaderText("QuantityAvailable").Add();
}).AllowRowDragAndDrop().AllowSelection().FilterSettings(filter => { filter.Type(Syncfusion.EJ2.Grids.FilterType.Excel); }).SelectionSettings(select=>select.Type( Syncfusion.EJ2.Grids.SelectionType.Multiple)).RowDropSettings(new Syncfusion.EJ2.Grids.GridRowDropSettings() { TargetID = "DestGrid" }).Render()
@Html.EJS().Grid("DestGrid").AllowSelection().AllowRowDragAndDrop(true).Columns(col =>
{
col.Field("ItemCategory").HeaderText("ItemCategory").Add();
col.Field("ItemDescription").HeaderText("ItemDescription").Add();
col.Field("QuantityAvailable").HeaderText("QuantityAvailable").Add();
col.Field("Quantityuse").HeaderText("
Quantityuse ").Template("#txttemplate").Add();
}).AllowPaging().SelectionSettings(select=>select.Type( Syncfusion.EJ2.Grids.SelectionType.Multiple)).RowDropSettings(new Syncfusion.EJ2.Grids.GridRowDropSettings() { TargetID = "Listgrid" }).Render()
<script id="txttemplate" type="text/x-template">
<input id="txtbox${ITEMID}" type="text" onchange="notify(this)" />
</script>
thank you,
Best Regards