Hello,
I'm really hoping somebody can shed light onto why code that was working in an earlier version of RadGrid no longer works after updating to the latest version of Grid. This code was working fine before the update. Now, although it sets the Enables property as expected (and I see this in the console) the change is not rendered on the grid. Am I doing something wrong? Or did this functionality actually get broken? It was a very easy way to disable a row. I understand there are other ways to do this, but they require more code. Seems silly that this would be taken away and I'm hoping I am wrong. Thanks!
Public Sub rgbt_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles rgbt.ItemDataBound
Dim item As GridDataItem = CType(e.Item, GridDataItem)
Dim lblEmpMsg As Label = CType(e.Item.FindControl("lblEmpMsg"), Label)
Dim empMsgVal As String = lblEmpMsg.Text
If (empMsgVal = "" Or IsDBNull(empMsgVal)) Then
item.Enabled = True
Else
item.Enabled = False
End If
End sub
Thanks!