This is a migrated thread and some comments may be shown as answers.

[Solved] detail grid combobox not matching values

1 Answer 136 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Web
Top achievements
Rank 1
Web asked on 27 Mar 2008, 07:59 PM
I have a radgrid that is a master detail.  In the detail table, I have a column with a radcombobox.  The datasource returns a query that has a value and display column and the value coming from the db is type numeric.  Thus far in .net, when referencing these values I reference them as decimal.  For this combobox, I set the type to be System.decimal but it is always showing the empty list item text and is uneditable.  Below is the snippet from the help file and my combobox.

Ensure that the fields specified through the DataField/ListValueField properties are of the same data type and the entries have a precise match, otherwise you will get merely the first item from the list displayed in non-editable mode. This can also happen if you have not configured properly the GridDropDownColumn, e.g. the relations between the fields specified through the DataField/ListValueField properties.
 
    <telerik:GridDropDownColumn DataSourceID="dsGetEmailAddressType" 
        DataField="emailAddressTypeSeq" 
        ListTextField="typeAcronym" ListValueField="emailAddressTypeSeq"
        CurrentFilterFunction="NoFilter" 
        FilterListOptions="VaryByDataType" 
        ForceExtractValue="None" HeaderText="Type"
        UniqueName="emailAddressTypeSeq" 
        DataType="System.Decimal" DropDownControlType="RadComboBox"
        EmptyListItemText="Please Select" EmptyListItemValue="" EnableEmptyListItem="true">
     </telerik:GridDropDownColumn>

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 01 Apr 2008, 12:17 PM
Hi Web,

I tested the described scenario and tried to replicate the issue, but to no avail. Attached to this message, is the sample, which I used for testing.
Please, take a look at it and let me know if there are additional settings which I am presently leaving out.

Regards,
Maria Ilieva
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
Web
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or