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

RadGridViewComboBoxColumn need to be able to allow other options than list contains

3 Answers 93 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ryan Overton
Top achievements
Rank 2
Ryan Overton asked on 16 Apr 2010, 11:21 PM
Is it possible to show a value that is not part of the ItemsSource of the combobox? My observablecollection contains 1,2,3,4, but the value I have assigned to the databound field is 10.

Below is my current column setup.
<telerik:GridViewComboBoxColumn Header="Weld ID" x:Name="ddWeldID" DataMemberBinding="{Binding WeldID}" DisplayMemberPath="WeldID" SelectedValueMemberPath="WeldID" 
                                                    IsComboBoxEditable="True" /> 


WeldID contains the value 24, but the ItemsSource I bind to the combobox contains the values 1,2,3,4. When I load the grid, 24 is not displayed in the column, but if I add the value 24 as one of the dropdown options, it gets displayed in the column.

Any help would be much appreciated!

Ryan

3 Answers, 1 is accepted

Sort by
0
Accepted
Pavel Pavlov
Telerik team
answered on 20 Apr 2010, 12:19 PM
Hello Ryan Overton,

Currently the GridViewComboBox column does not support a scenario where a value not in the ItemsSource shall be displayed.

The best workaround here would be to use a regular column , with a RadComboBox placed in the cell template.  Then maybe by  using the TextBinding property of the combobox - achieve the desired effect.

The good news is that we are already addressing this issue  and in a very sooner version GridViewComboBoxColumn will be able to handle such scenarios ( within less than two weeks ).

Best wishes,
Pavel Pavlov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Nikhil Pant
Top achievements
Rank 1
answered on 09 Jul 2010, 01:28 AM
Hi,

I am using Telerik.Windows.Controls.GridView.dll version 2010.1.603.35, does it have the said functionality where the
GridViewComboBoxColumn can be used to display the values that are not part of the ComboBox's Itemsource property?

Thanks
Nikhil
 

0
Pavel Pavlov
Telerik team
answered on 09 Jul 2010, 08:48 AM
Hi Nikhil Pant,

The ComboBoxColumn does not have such feature. Such marginal scenarios as said before in the thread should be achieved by placing  a "clever " user control  containing a combo inside the cells via the CellTemplate property.
By "clever" I mean some custom code should be written.

Sincerely yours,
Pavel Pavlov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Ryan Overton
Top achievements
Rank 2
Answers by
Pavel Pavlov
Telerik team
Nikhil Pant
Top achievements
Rank 1
Share this question
or