Hi
I am working on Batch Edit on heirarchical grid, I am able to read the cell values bound to master grid, but not able to read the detail grid cell values. I am binding both master and detail grid using the datasource .
.aspx
<telerik:RadGrid ID="radDataEntry" runat="server" MasterTableView-NoDetailRecordsText=""
AllowAutomaticDeletes="true" AllowAutomaticUpdates="false"
OnItemDeleted="radDataEntry_ItemDeleted"
MasterTableView-NoMasterRecordsText="" EnableEmbeddedSkins="false" Skin="DV" OnBatchEditCommand="radDataEntry_BatchEditCommand" OnItemUpdated="radDataEntry_ItemUpdated"
SortingSettings-EnableSkinSortStyles="false" BorderStyle="None" EnableEmbeddedBaseStylesheet="false">
<MasterTableView ShowFooter="false" EditMode="Batch" CommandItemDisplay="Top" AutoGenerateColumns="false" Name="source" Width="100%" ExpandCollapseColumn-Visible="true"
TableLayout="Auto">
<ItemStyle Height="30px" HorizontalAlign="Center" />
<AlternatingItemStyle Height="30px" />
<BatchEditingSettings EditType="Cell" />
<CommandItemSettings ShowAddNewRecordButton="false" SaveChangesText="Update" CancelChangesText="Cancel" />
<DetailTables>
<telerik:GridTableView HierarchyDefaultExpanded="true" Name="AccountDetails" AutoGenerateColumns="False" AllowAutomaticDeletes="true" AllowAutomaticInserts="true" AllowAutomaticUpdates="true" NoDetailRecordsText="<%$ Resources:Generic,NoResults %>" ShowHeader="false" EditMode="Batch" AllowPaging="false" HierarchyLoadMode="Client">
<ItemStyle Height="30px" HorizontalAlign="Center" />
<AlternatingItemStyle Height="30px" />
<BatchEditingSettings EditType="Cell" />
<CommandItemSettings ShowAddNewRecordButton="false" SaveChangesText="Update" CancelChangesText="Cancel" />
<Columns>
<telerik:GridBoundColumn DataField="Account.AccountID" HeaderText="" Display="false" />
<telerik:GridBoundColumn DataField="Account.AccountNumber" ReadOnly="true" HeaderText="" />...........
<telerik:GridBoundColumn HeaderText="<%$ Resources:Generic,Total %>" UniqueName="Total"
DataField="<%$ Resources:Generic,Total %>" HeaderStyle-Width="3%" ItemStyle-Width="3%">
</telerik:GridBoundColumn>
</Columns>
</telerik:GridTableView>
</DetailTables>
<Columns>
<telerik:GridBoundColumn HeaderText="Locations" UniqueName="Source" DataField="<%$ Resources:Generic,Source %>" HeaderStyle-Width="10%" ItemStyle-Width="10%" ItemStyle-Font-Bold="true">
</Columns>
</MasterTableView>
</telerik:RadGrid>
.vb
Protected Sub radDataEntry_BatchEditCommand(sender As Object, e As Telerik.Web.UI.GridBatchEditingEventArgs) Handles radDataEntry.BatchEditCommand
Dim newValues As Hashtable
Dim oldValues As Hashtable
For Each command As GridBatchEditingCommand In e.Commands
If (command.Type = GridBatchEditingCommandType.Update) Then
newValues = command.NewValues
oldValues = command.OldValues
' Dim ID As String = newValues("ID").ToString()
End If
Next
End Sub
Here i am getting e.Commands count as 0 when trying to read the detail grid edited cell values., I have attached a screenshot where i am able to read the 8888 value which is bind to master grid and not able to read the 9999 value which is bind to the detail grid.
Please let me know to read the detail grid cell values
Thanks
Ramesh