Would you please provide an example of how to do this?
Thanks,
-Lynne W
9 Answers, 1 is accepted
You can use an ordinary GridViewDataColumn and place a ComboBox inside the CellTemplate of the column. That way you will always see the ComboBox no matter if the cell is in edit mode or not.
Please let me know if this would work in your case.
Didie
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
My grid is a list of devices, coming from a CollectionViewSource, and displays correctly
<
telerik:GridViewDataColumn
Name
=
"colEquipmentType2"
>
<
telerik:GridViewColumn.CellTemplate
>
<
DataTemplate
>
<
ComboBox
DisplayMemberPath
=
"EquipmentTypeName"
ItemsSource
=
"{Binding Source={StaticResource cviewEquipmentTypes}}"
SelectedValue
=
"{Binding EquipmentType_EquipmentTypeId, Mode=TwoWay}"
SelectedValuePath
=
"EquipmentTypeId"
SelectedItem
=
"EquipmentTypeId"
/>
</
DataTemplate
>
</
telerik:GridViewColumn.CellTemplate
>
</
telerik:GridViewDataColumn
>
If I use a regular GridViewComboBoxColumn (below), it displays correctly, albeit without the always-visible drop-down arrow.
<
telerik:GridViewComboBoxColumn
Name
=
"colEquipmentType"
DataMemberBinding
=
"{Binding EquipmentType_EquipmentTypeId}"
DisplayMemberPath
=
"EquipmentTypeName"
ItemsSource
=
"{Binding Source={StaticResource cviewEquipmentTypes}}"
SelectedValueMemberPath
=
"EquipmentTypeId"
UniqueName
=
"EquipmentType"
/>
You should specify DataMemberBinding for the GridViewDataColumn. Do you export the value, selected from the ComboBox?
Greetings,Didie
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
I have not understood what this sentence mean: "updating a single row's EquipmentType then causes all items (each row's EquipmentType) in the CVS to get set to the the same value". I suppose that you export the rows to CVS, is that correct?
Kind regards,Didie
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Can this be done? If so, do you have, or can you provide an example showing how to do it, please?
Are you looking for exporting example? Please check you local copy of our demos for more info.
All the best,Vlad
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
I apologize for this misunderstanding.
I have attached a sample project to show you what I meant in my first reply. Please check it and try to apply the same logic into your implementation.
If you still get the mentioned problem, please send me a sample project via Support thread, so that we could check what the exact case is.
Didie
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>