RadGrid.UpdateValues stopped working on upgrade to ASP.NET Q2 2014

2 posts, 0 answers
  1. Jie
    Jie avatar
    2 posts
    Member since:
    Jun 2012

    Posted 03 Oct 2014 Link to this post

    In a number of applications that I have worked on using Telerik Web UI controls for ASP.NET AJAX, I have use the below pattern to retrieve the row object server-side that the user selects.

    protected void MyRadGrid_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
    {
        if (e.CommandName == "RowClick")
        {
              ObjectX a = new ObjectX();
              ((GridEditableItem)e.Item).UpdateValues(a);
        }
    }

    Previously, as long as ObjectX was a "flat" object - meaning scalar members only - the object "a" would return fully populated with data.

    However, since I've downloaded the ASP.NET AJAX Q2 2014, the UpdateValues line causes the application to bomb, specifically because UpdateValues tries to set "a" with some NULL values.
  2. Jie
    Jie avatar
    2 posts
    Member since:
    Jun 2012

    Posted 03 Oct 2014 in reply to Jie Link to this post

    Nevermind, I found the issue.  Needed to change Visible="false" fields to Display="false".
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top