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

[Solved] Bound RadComboBox in grid not showing empty for null values

1 Answer 179 Views
Grid
This is a migrated thread and some comments may be shown as answers.
shovavnik
Top achievements
Rank 1
shovavnik asked on 30 Jan 2008, 09:25 PM

I've got this drop down column in a bound grid.

<telerik:GridDropDownColumn DropDownControlType="DropDownList" CurrentFilterFunction="NoFilter" DataField="RoleId" DataSourceID="RoleDataSource1" EnableEmptyListItem="True" FilterListOptions="VaryByDataType" ForceExtractValue="None" HeaderText="Role" ListTextField="Name" ListValueField="Id" SortExpression="Name" UniqueName="column1"> 
</telerik:GridDropDownColumn> 

When DropDownControlType="DropDownList" and the field value is null, the value is properly shown as empty in the column.

But when DropDownControlType="RadComboBox" and the field value is null, the first non-null value in the related data source is shown instead.

Note that this affects not only the default edit form, but also the regular read-only view. If I switch to the edit form, the DropDownList shows an empty item in the list, but the RadComboBox does not.

The effect is that when using the RadComboBox, it always looks like there's a value, even when there isn't.

Is this a bug?
Am I doing something wrong?
Is there a workaround?

1 Answer, 1 is accepted

Sort by
0
Giuseppe
Telerik team
answered on 01 Feb 2008, 05:37 PM
Hi shovavnik,

We are unable to reproduce the problematic behavior you are experiencing with the latest version of the controls. Could you review the attached sample application and let us know how we can observe the problem.


All the best,
Manuel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
shovavnik
Top achievements
Rank 1
Answers by
Giuseppe
Telerik team
Share this question
or