【问题标题】:Read values from Detail table of RadGrid Batch Edit从 RadGrid 批量编辑的详细信息表中读取值
【发布时间】:2015-05-08 06:12:15
【问题描述】:

谁能回答,如何从 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

【问题讨论】:

    标签: asp.net vb.net telerik


    【解决方案1】:

    在该 mastertable 元素下的网格的批量编辑设置中,确保已将 SaveAllHierarchyLevels 设置为 true

    <BatchEditingSettings SaveAllHierarchyLevels="true" />
    

    http://www.telerik.com/help/aspnet-ajax/grid-batch-editing.html

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-10-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多