阅读从radgrid控件批量编辑的详细信息表中的值 [英] Read values from Detail table of RadGrid Batch Edit

查看:754
本文介绍了阅读从radgrid控件批量编辑的详细信息表中的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以请你回答,如何从radgrid控件的详细信息表读值,我能够用BatchEditCommand从主表中读取而不是从详细信息表,同时点击按钮的SaveChanges:

 保护小组radDataEntry_BatchEditCommand(发送者为对象,E作为Telerik.Web.UI.GridBatchEditingEventArgs)处理radDataEntry.BatchEditCommand
        昏暗newValues​​作为哈希表
        昏暗oldValues​​作为哈希表
        对于每个命令作为GridBatchEditingCommand在e.Commands
            如果(command.Type = GridBatchEditingCommandType.Update)然后
                newValues​​ = command.NewValues
                oldValues​​ = command.OldValues
                昏暗的ID作为字符串= newValues​​(ID)。的ToString()
            万一
        下一个    结束小组


解决方案

在这mastertable元素下的电网您的批量编辑设置,请确保您已设置SaveAllHierarchyLevels为true

 < BatchEditingSettings SaveAllHierarchyLevels =真/>

http://www.telerik.com/help/ ASPNET阿贾克斯/网格批editing.html

Can anyone please answer ,How to read values from detail table of radgrid, I am able to read using BatchEditCommand from master table but not from detail table while clicked on savechanges button:

 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

解决方案

In your batch edit settings of the grid under that mastertable element, make sure you have set SaveAllHierarchyLevels to true

<BatchEditingSettings SaveAllHierarchyLevels="true" />

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

这篇关于阅读从radgrid控件批量编辑的详细信息表中的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆