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

How do I collapse / expande GridViewComboBoxColumn

5 Answers 77 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Freeky
Top achievements
Rank 1
Freeky asked on 04 Jul 2011, 09:13 PM
Hi Guy,
How do I collapse / expande a GridViewComboBoxColumn.
Regards,

5 Answers, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 05 Jul 2011, 08:57 AM
Hi ,

I am afraid I do not understand your question. Do you need to hide/show the combo column, or you need to toggle the drop-down state ? 
Please give some more details /

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
Freeky
Top achievements
Rank 1
answered on 05 Jul 2011, 02:03 PM
Just to toggle the drop-down state
Thanks
0
Pavel Pavlov
Telerik team
answered on 05 Jul 2011, 02:57 PM
Hi ,

The property of RadComboBox which controls the drop down state is "IsDropDownOpen"

You may set it in a Style , using the EditorStyle property of the GridViewComboBox column.
The style of course should target RadComboBox.


Best wishes,
Pavel Pavlov
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!

0
Freeky
Top achievements
Rank 1
answered on 05 Jul 2011, 03:41 PM
Hi Pavel,

Thanks for your quick answer; However, it is not working.
here is my code :

  <k:EditGridView.Columns>              
               
                <k:GridViewComboBoxColumn  Header="XXX" 
                                          ItemsSource="{Binding Type}"
                                          DataMemberBinding="{Binding TypeSelected}"                                        
                                          EditTriggers="CellClick" />
               
                <k:GridViewComboBoxColumn.EditorStyle>
                    <Style TargetType="telerik.RadComboBox">
                        <Setter Property="OpenDropDownOnFocus" Value="true" />
                    </Style>
                </k:GridViewComboBoxColumn.EditorStyle> 
     </k:EditGridView.Columns>

I am having the following error: the attachable propertry EditorStyle was not found in GridViewComboBoxColumn.
PS: keep in mind my control inherit telerik GridViewComboBoxColumn

Regards
0
Freeky
Top achievements
Rank 1
answered on 05 Jul 2011, 03:53 PM
Thank Pavlov - I solved my problem

best regards
Tags
ComboBox
Asked by
Freeky
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Freeky
Top achievements
Rank 1
Share this question
or