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

GridViewComboBoxColumn - Grouped items?

3 Answers 56 Views
GridView
This is a migrated thread and some comments may be shown as answers.
keepITcool
Top achievements
Rank 1
keepITcool asked on 05 Oct 2018, 09:58 AM

I have a simple RadGridView (no filtering/no grouping)
I have a Column defined as below with the ItemsSource bound to a CollectionViewSource with a single PropertyGroupDescription.
I want to show the items in the combo popup grouped. 

<telerik:GridViewComboBoxColumn
    DataMemberBinding="{Binding Left}"
    DisplayMemberPath="Name"
    Header="Left"
    IsFilterable="False"
    ItemTemplate="{DynamicResource itmTemplate}"
    ItemsSource="{Binding LeftCVS.View}"
    SelectedValueMemberPath="Index"
    GroupHeaderTemplate="{DynamicResource hdrTemplate}"
    UniqueName="left" />

 

For a normal RadComboBox I can do it by setting the GroupStyle. Can't find the equivalent on the GridViewComboBox.

Help!

Jurgen

 

 

 

3 Answers, 1 is accepted

Sort by
0
Vladimir Stoyanov
Telerik team
answered on 10 Oct 2018, 09:10 AM
Hello Jurgen,

May I ask you to check out the following thread: Grouping item inside ComboBoxColumn where a similar question was discussed? Additionally you can check out the Grouping Items forum thread where another approach was discussed. Even though the approach is for the RadComboBox, it should be relevant for the GridViewComboBoxColumn as well. 

Please, give the suggestions in the above topics a try and let me know if they are suitable for your scenario.

Regards,
Vladimir Stoyanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
keepITcool
Top achievements
Rank 1
answered on 10 Oct 2018, 10:09 PM

I solved it by dumping the ComboBoxColumn.
I know have a standard GridViewColumn... with CellTemplate (basic stackpanel), CellEditTemplate with a RadcomboBox. Much more control and I got what I want.

Worked around it and found a solution. But it's still strange that a RadComboBoxColumn doesn't fully expose the RadcomboBox that you know is there..

 

Jurgen

 

0
Vladimir Stoyanov
Telerik team
answered on 12 Oct 2018, 01:19 PM
Hello Jurgen,

I am glad to hear that you were able to find a suitable solution. Thank you for sharing your approach.

As for the GridViewComboBoxColumn it exposes most of the properties defined by the RadComboBox. What you have as an option to further modify the RadComboBox is to define a style targeting RadComboBox and set it to the EditorStyle property of the column. Of course, using a standard column with custom CellTemplate and CellEditTemplate is also a valid option.

Regards,
Vladimir Stoyanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
GridView
Asked by
keepITcool
Top achievements
Rank 1
Answers by
Vladimir Stoyanov
Telerik team
keepITcool
Top achievements
Rank 1
Share this question
or