Hi there-
I want to detect if a DropDown field had an empty value before entering editmode but can't seem to tell how. What's happening is when I open inline editing for a item, the DropDown autoselect the first item in the datasource that the dropdown is bound to... even if previously there was no value in there.
So for example I have no text values in this column:
<telerik:GridDropDownColumn DataField="DataCenterCode" DataSourceID="SqlDataSource_DataCenters"
HeaderText="DataCenterCode" ListTextField="Acronym" ListValueField="Acronym"
UniqueName="DataCenterCode" ColumnEditorID="GridDropDownColumnEditor2">
</telerik:GridDropDownColumn>
But then once I enter edit mode, the first value is automatically selected. How can I determine if the value is actually empty for this field so that I can highlight it as requiring selection. Otherwise, it appears as though the first value was already selected.
Thanks for any help.
I want to detect if a DropDown field had an empty value before entering editmode but can't seem to tell how. What's happening is when I open inline editing for a item, the DropDown autoselect the first item in the datasource that the dropdown is bound to... even if previously there was no value in there.
So for example I have no text values in this column:
<telerik:GridDropDownColumn DataField="DataCenterCode" DataSourceID="SqlDataSource_DataCenters"
HeaderText="DataCenterCode" ListTextField="Acronym" ListValueField="Acronym"
UniqueName="DataCenterCode" ColumnEditorID="GridDropDownColumnEditor2">
</telerik:GridDropDownColumn>
But then once I enter edit mode, the first value is automatically selected. How can I determine if the value is actually empty for this field so that I can highlight it as requiring selection. Otherwise, it appears as though the first value was already selected.
Thanks for any help.