任何人都可以回答,如何从radgrid的详细信息表中读取值,我可以使用主表中的BatchEditCommand读取,但是在点击savechanges按钮时不能从详细信息表中读取:
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
答案 0 :(得分:0)
在该mastertable元素下的网格的批量编辑设置中,确保已将SaveAllHierarchyLevels设置为true
<BatchEditingSettings SaveAllHierarchyLevels="true" />
http://www.telerik.com/help/aspnet-ajax/grid-batch-editing.html