This is a migrated thread and some comments may be shown as answers.

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

1 Answer 72 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jie
Top achievements
Rank 1
Jie asked on 03 Oct 2014, 04:29 PM
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.

1 Answer, 1 is accepted

Sort by
0
Jie
Top achievements
Rank 1
answered on 03 Oct 2014, 05:33 PM
Nevermind, I found the issue.  Needed to change Visible="false" fields to Display="false".
Tags
General Discussions
Asked by
Jie
Top achievements
Rank 1
Answers by
Jie
Top achievements
Rank 1
Share this question
or