Hi,
We have implemented following solution on grid to stop row drop postback when gird data is changed
https://www.telerik.com/forums/disable-postback-on-dropped-item
But doing so we are now facing issue on inline combo box doesn't work anymore, after this solution. combo box drop option gets prevent because of grid dropping event. how we can overcome this
<telerik:RadGrid ID="ProcessStepListGrid" EnableEmbeddedSkins="false" runat="server" Height="100%" AutoGenerateColumns="False"
GridLines="None" PagerStyle-Mode="NumericPages" AllowPaging="false"
AllowAutomaticDeletes="true" AllowAutomaticInserts="true" AllowAutomaticUpdates="true"
AllowSorting="True" GroupingEnabled="False" EnableAJAX="false" OnNeedDataSource="ProcessStepListGrid_NeedDataSource"
OnRowDrop="ProcessStepListGrid_RowDrop">
<MasterTableView EnableColumnsViewState="false" DataKeyNames="Guid" ShowFooter="true"
CommandItemDisplay="None" EditMode="Batch" >
<CommandItemSettings ShowAddNewRecordButton="false" ShowCancelChangesButton="false" AddNewRecordText="" SaveChangesText="Save" CancelChangesText="Cancel" ShowSaveChangesButton="false"/>
<Columns>
<telerik:GridTemplateColumn UniqueName="Typical" HeaderText="" ColumnGroupName="Typical" >
<ItemTemplate>
<asp:Label ID="lblTypical" runat="server"></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<telerik:RadNumericTextBox ID="rnbTypical" ShowSpinButtons="true" runat="server" Width="50px" MinValue="0" MaxValue="100" NumberFormat-AllowRounding="true" NumberFormat-DecimalDigits="0">
<ClientEvents OnKeyPress="NumbersOnly" />
</telerik:RadNumericTextBox>
</EditItemTemplate>
<FooterTemplate>
<telerik:RadNumericTextBox ID="rnbTypical" ShowSpinButtons="true" runat="server" Width="50px" MinValue="0" MaxValue="100" NumberFormat-AllowRounding="true" NumberFormat-DecimalDigits="0">
<ClientEvents OnKeyPress="NumbersOnly" />
</telerik:RadNumericTextBox>
</FooterTemplate>
<HeaderStyle Width="50px" CssClass="headerBorder" />
<ItemStyle Width="50px" />
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn UniqueName="TypicalMeasure" HeaderText="" ColumnGroupName="Typical" >
<ItemTemplate>
<asp:Label ID="lblTypicalMeasure" runat="server"></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<telerik:RadDropDownList ID="ddlTypicalMeasure" runat="server" DataTextField="DisplayName" DataValueField="Guid" DataSourceID="ReportingPeriodDataSource" Width="50px" DropDownWidth="150px"></telerik:RadDropDownList>
</EditItemTemplate>
<FooterTemplate>
<telerik:RadDropDownList ID="ddlTypicalMeasure" runat="server" DataTextField="DisplayName" DataValueField="Guid" DataSourceID="ReportingPeriodDataSource" Width="50px" DropDownWidth="150px"></telerik:RadDropDownList>
</FooterTemplate>
<HeaderStyle Width="60px" CssClass="headerBorder" />
<ItemStyle Width="60px" />
</telerik:GridTemplateColumn>
</Columns>
</MasterTableView>
<ClientSettings AllowRowsDragDrop="true">
<Selecting AllowRowSelect="True" EnableDragToSelectRows="false" />
<ClientEvents OnRowDropping="onRowDropping" />
</ClientSettings>
</telerik:RadGrid>
<script>
function onRowDropping(sender, args) {
var grid = $telerik.findControl(document, "ProcessStepListGrid");
var hasChanged = grid.get_batchEditingManager().hasChanges(grid.get_masterTableView());
if (hasChanged) {
args.set_cancel(true);
}
}
</script>