When I click "Add a new record", the Loading... icon at the bottom of the grid spins continuously, but the Edit works fine.
Actually, I found the problem, but I'm not sure how to fix it.
The EditFormType is Template. In the template I have the following:
The problem is with the SelectedValue. When editing an existing record, there is a value in CommentCategory; but when inserting it is null.
What is the best way for me to conditionally include the SelectedValue property? On a new record, I want don't want a default value -- the user needs to think about which it should be. (An error message displays before saving if null.)
Actually, I found the problem, but I'm not sure how to fix it.
The EditFormType is Template. In the template I have the following:
<td> <asp:RadioButtonList ID="CommentLevel_RadioButtonList" runat="server"DataSourceID="CommentLevel_SqlDataSource" DataTextField="CodeValue"DataValueField="CodeName" RepeatDirection="Horizontal"
SelectedValue='<%# Eval("CommentCategory") %>'> </asp:RadioButtonList></td>The problem is with the SelectedValue. When editing an existing record, there is a value in CommentCategory; but when inserting it is null.
What is the best way for me to conditionally include the SelectedValue property? On a new record, I want don't want a default value -- the user needs to think about which it should be. (An error message displays before saving if null.)