I have several columns such as the following in a RadGrid with the EditMode set to Batch and EditType set to Row:
Each of these columns is bound to a nullable field, and displays correctly. However, when I attempt to edit a row, I cannot select the empty item. It automatically selects the first item in the databound list. How do I select an empty item so that I can pass a null value to the database?
<telerik:GridDropDownColumn DataField="Fund" DataSourceID="odsFunds" FilterControlAltText="Filter Fund column" HeaderText="Fund" EnableEmptyListItem="True" ConvertEmptyStringToNull="true" EmptyListItemText="" EmptyListItemValue="" ListTextField="Code" ListValueField="Code" SortExpression="Fund" UniqueName="Fund"> <ColumnValidationSettings> <ModelErrorMessage Text="" /> </ColumnValidationSettings> <HeaderStyle HorizontalAlign="Right" /> <ItemStyle HorizontalAlign="Right" /></telerik:GridDropDownColumn>Each of these columns is bound to a nullable field, and displays correctly. However, when I attempt to edit a row, I cannot select the empty item. It automatically selects the first item in the databound list. How do I select an empty item so that I can pass a null value to the database?