Hi,
I have a RadGrid with 2 DetailTables. Events inside a Detail Table are not firing for the first time, but it is firing for second attempt.
Please find below the issues i am facing:
1) Check box in 1st Detail View is not hitting OnCheckedChanged for the first attempt, but postback is happening and OnItemDataBound event is getting triggered. OnCheckedChanged event is firing for the second attempt
2) OnTextChanged of RadNumericTextBox in 2nd Detail View is not firing for the first attempt, but postback is happening and OnItemDataBound event is getting triggered. it is firing in second attempt.
<telerik:RadGrid ID="rGrid" runat="server" OnNeedDataSource="rGrid_NeedDataSource" RenderMode="Lightweight"
GridLines="None" OnPreRender="rGrid_PreRender" OnItemDataBound="rGrid_ItemDataBound"
OnDetailTableDataBind="rGrid_DetailTableDataBind" OnDeleteCommand="rGrid_DeleteCommand" OnItemCommand="rGrid_ItemCommand">
<MasterTableView AutoGenerateColumns="false" DataKeyNames="Id" ShowFooter="true" Name="Master" HierarchyLoadMode="Client" RetainExpandStateOnRebind="true" HorizontalAlign="Right">
<DetailTables>
<telerik:GridTableView DataKeyNames="EventDesc" HorizontalAlign="Left" Name="DetailTableView" Width="105%" AutoGenerateColumns="false" ShowHeader="false" HierarchyLoadMode="Client" CssClass="inner_grid" RetainExpandStateOnRebind="true">
<DetailTables>
<telerik:GridTableView Width="100%" HorizontalAlign="Right" AutoGenerateColumns="false" ShowHeader="true" NoDetailRecordsText="No invoice recorded" Name="DetailTable1" RetainExpandStateOnRebind="true">
<Columns>
<telerik:GridTemplateColumn HeaderText="Amount" HeaderStyle-Width="126px">
<ItemTemplate>
<telerik:RadNumericTextBox ID="rtxtAmount" runat="server" MinValue="0" DbValue='<%# Eval("Amount") %>' Width="95px"
OnTextChanged="rtxtAmount" AutoPostBack="true" >
<IncrementSettings InterceptMouseWheel="false" InterceptArrowKeys="false" />
</telerik:RadNumericTextBox>
</ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
</telerik:GridTableView>
</DetailTables>
<Columns>
<telerik:GridTemplateColumn UniqueName="chkBox" HeaderStyle-Width="15px">
<ItemTemplate>
<asp:CheckBox ID="CheckBoxSubGid" runat="server" OnCheckedChanged="CheckBoxSubGid_CheckedChanged" AutoPostBack="true" />
</ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
</telerik:GridTableView>
</DetailTables>
<Columns>
<telerik:GridTemplateColumn DataField="EventDesc" HeaderText="description" UniqueName="description" >
<ItemTemplate>
<telerik:RadTextBox ID="rtxtdescription" runat="server" TextMode="MultiLine" Text='<%# Eval("description") %>' > </telerik:RadTextBox>
</ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>
Could you please let me know the solution ?
Thanks in advance!!
Regards,
Puru