
The comboboxcolumn is not showing the info from the linked table:
this is the code snippet I'm using to define the column
column
=
GridViewComboBoxColumn.new()
column.DataMemberBinding
=
bind
column.UniqueName
=
colname
column.IsComboBoxEditable
=
true
column.ItemsSource
=
data_table_source.DefaultView
column.DisplayMemberPath
=
"name"
column.SelectedValueMemberPath
=
"id"
# add the column to the datagrid
raddatagrid.Columns.Add(column)
I can edit the column and the combobox appears populated in full, but as soon as I select an item the view doesn't show the result.
Any suggestions?
I'm using IronRuby, I can make it work as expected with the WPF .net 4.0 DataGrid without any problem.
Regards
Eduardo
10 Answers, 1 is accepted
A possible reason for such a behaviour would be if your bound data and your selected data are of different type. What is the type of the bound data and what is the type of the "id"?
Greetings,Didie
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Thank you for the quick response
The types for "id" and the grid are int (integer).
Regards,
Eduardo
All seems to be fine then. You state that "with the WPF .net 4.0 DataGrid" this code works fine. Can you please explain in details the code related to the DataGrid and the code related to the GridView? Probably there are some differences.
Didie
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

here is the DataGrid snippet that is working presently, using the default wpf DataGrid Control:
column
=
DataGridComboBoxColumn.new()
column.SelectedValueBinding
=
bind
column.ItemsSource
=
data_table_source.DefaultView
column.DisplayMemberPath
=
"name"
column.SelectedValueMemberPath
=
"id"
# add the column to the datagrid
datagrid.Columns.Add(column)
As you can see it is exactly equivalent to the gridviewcomboboxcolumn approach, except for the setting of the UniqueName and IsComboBoxEditable and using SelectedValueBinding instead of DataMemberBinding.
Thank you in advance
Eduardo.
May I ask you to check the Ouput for binding errors?
If you not have binding errors, then another question is what is the 'bind' in
column.DataMemberBinding = bind
I would be better if you can share how your bound data object is defined.
All the best,
Didie
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

bind
=
Binding.new(column_name)
It is just a standard.

Regards,
Eduardo Blumenfeld
PS: this problem is in some way a showstopper for the use of the control.
I do not see any problem in your code and I am not able to reproduce such at my place. Would it be possible for you to send us a simple project that we can debug?
Greetings,Didie
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Thank you for the follow-up.
Did I mention that I'm using IronRuby?
The code I sent you is the actual code I'm using.
It makes heavy use of the dynamic capabilities of IronRuby.
(and it certainly works with the default DataGrid in the exact way
I sent you)
Regards,
Eduardo
I know that you use IronRuby, but just on that code we are not able to figure out what the problem would be. Although the IronRuby is not among our supported languages, we will de our best to check the issue.
A similar problem was troubleshooted at this online article. As all of the reasons there is not valid for your case, then we will need a project.
All the best,
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>