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

[Solved] GridViewComboBoxColumn & values not in combobox

3 Answers 136 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jim
Top achievements
Rank 1
Jim asked on 08 Dec 2010, 04:13 PM
Greetings,
I'm trying to use GridViewComboBoxColumn as editable column with sort of suggestions to user as what values should be entered. Problem is, I can't make GridView to display or accept values that are not in combo box.
In edit mode it rejects any value not on list, either giving empty value, or picking value from list that starts with user entered value (eg. user enters 45, which is not on list and it fills in 4567, even if user manually deletes autocompleted 67 and changes focus to different cell).
If data is loaded into GridView that contain values in combobox column that are not on the list, these are not shown. I would understand it in situations where actual data is different from displayed data, but that is not my case.
What am I doing wrong?
GridViewComboBoxColumn is defined this way:
<telerik:GridViewComboBoxColumn DataMemberBinding="{Binding somecolumn}" Header="whatever" UniqueName="somecolumn" IsComboBoxEditable="True" SelectedValueMemberPath="somecolumn" DisplayMemberPath="somecolumn"/>
And is filled with items this way:
((GridViewComboBoxColumn)this.dgData.Columns["somecolumn"]).ItemsSource = context.somecolumn_datas;
(RIA context + ADO.NET)

3 Answers, 1 is accepted

Sort by
0
Accepted
Pavel Pavlov
Telerik team
answered on 08 Dec 2010, 04:52 PM
Hello Jim,

The answer to this one is short - Unfortunately GridViewComboBoxColumn does not support entering values that are not in the column ItemsSource .
Achieving such behavior would require writing some external code e.g. a custom editor placed in the cell to support such scenario.

Regards,
Pavel Pavlov
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
David Ribb
Top achievements
Rank 1
answered on 21 Jul 2011, 07:50 AM
Has this feature been implemenent yet in Q2 2011?
0
Maya
Telerik team
answered on 21 Jul 2011, 08:39 AM
Hi David Ribb,

This feature is not yet implemented. However, you may take a look at this forum thread for a reference on a possible workaround. Let me know in case you need any assistance with it. 

 

Best wishes,
Maya
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
GridView
Asked by
Jim
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
David Ribb
Top achievements
Rank 1
Maya
Telerik team
Share this question
or