I have a grid with templated columns inside an AJAX panel. This column has a computed value. This causes a run-time error stating that the controls can not be modified because there is a code block within the controls collection. If I take the grid out of the panel it works fine but I only want to update the grid though. How do I get around this or fix it? Here is my column and it is in a grid contained in a standard AJAX panel.
Associated with this error is the fact that the AJAX manager configuration screen does not list the controls on the page so that I can set the properties to let the update panel handle the AJAX calls for the grid.
| <telerik:GridTemplateColumn UniqueName="DateLocked" Groupable="false" DataField="DateLocked" SortExpression="DateLocked" HeaderText="Date Locked"> |
| <ItemTemplate> |
| <asp:Label Text='<%# (Convert.ToDateTime(DataBinder.Eval(Container.DataItem, "DateLocked")) > DateTime.MinValue.AddYears(1))? DataBinder.Eval(Container.DataItem, "DateLocked") : "N/A" %>' ID="DateLockedLabel" runat="server"></asp:Label> |
| </ItemTemplate> |
| </telerik:GridTemplateColumn> |
Associated with this error is the fact that the AJAX manager configuration screen does not list the controls on the page so that I can set the properties to let the update panel handle the AJAX calls for the grid.