RadGrid cannot get the savedoldvalues

4 posts, 0 answers
  1. Wilson
    Wilson avatar
    6 posts
    Member since:
    Aug 2008

    Posted 16 Aug 2008 Link to this post

    Hi,

    The "SavedOldValues"  returns empty hashtable.
    Please help.  

    Private Sub GridViewControl_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles GridViewControl.ItemCommand

    If (e.CommandName = RadGrid.UpdateCommandName) Then

    If (e.Item.GetType.ToString = "Telerik.Web.UI.GridEditFormItem") Then

    Dim editedItem As GridEditFormItem = CType(e.Item, GridEditFormItem)

    _Session(

    "RadGrid.SavedOldValues") = editedItem.SavedOldValues

    End If

    End If

    End Sub

    Wilson

  2. Yavor
    Admin
    Yavor avatar
    11 posts

    Posted 20 Aug 2008 Link to this post

    Hello Wilson,

    The approach in question is applicable for autogenerated column editors, as described in this article. If using a template column, the approach is slightly different.
    Let me know if this information helps.

    Regards,
    Yavor
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Wilson
    Wilson avatar
    6 posts
    Member since:
    Aug 2008

    Posted 20 Aug 2008 Link to this post

    Hi,

    The AutoGenerateColumns was set to "true"

    It works fine with _Grid.MasterTableView.EditMode=GridEditMode.InPlace

    But, it doesn't work with GridEditMode.EditForms

    Any trick?

    Thanks,
    Wilson
  5. Kiara
    Kiara avatar
    309 posts
    Member since:
    Jul 2006

    Posted 22 Aug 2008 Link to this post

    Have you set AllowAutomaticUpdates = true for the master table in the grid? I noticed that in your code snippet from the help topic and it is probably an important part of the implementation. Also make sure that you bind the grid with NeedDataSource event handling.

    Kiara
Back to Top