lundi 11 mai 2015

Read old and new values on RadGrid Batch Edit

I am trying to work on Batch Edit, I want to read the edited values only from the below events

I am not able to read the old and new values from RadGrid1_ItemUpdated(object source, GridUpdatedEventArgs e) as the below code which we use to read the old and new values contains e.CommandArgument which we don't get from GridUpdatedEventArgs

Dim argument As GridBatchEditingEventArgument = TryCast(e.CommandArgument, GridBatchEditingEventArgument)

Also, please help me how to get the old and new values from the detail(child or hierarchical) grid. I am facing problem to get from child grid.

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

Aucun commentaire:

Enregistrer un commentaire