How do I collapse / expande GridViewComboBoxColumn

6 posts, 0 answers
  1. Freeky
    Freeky avatar
    4 posts
    Member since:
    Jun 2011

    Posted 04 Jul 2011 Link to this post

    Hi Guy,
    How do I collapse / expande a GridViewComboBoxColumn.
    Regards,

  2. Pavel Pavlov
    Admin
    Pavel Pavlov avatar
    2039 posts

    Posted 05 Jul 2011 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. Freeky
    Freeky avatar
    4 posts
    Member since:
    Jun 2011

    Posted 05 Jul 2011 Link to this post

    Just to toggle the drop-down state
    Thanks
  5. Pavel Pavlov
    Admin
    Pavel Pavlov avatar
    2039 posts

    Posted 05 Jul 2011 Link to this post

    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!

  6. Freeky
    Freeky avatar
    4 posts
    Member since:
    Jun 2011

    Posted 05 Jul 2011 Link to this post

    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
  7. Freeky
    Freeky avatar
    4 posts
    Member since:
    Jun 2011

    Posted 05 Jul 2011 Link to this post

    Thank Pavlov - I solved my problem

    best regards
Back to Top
UI for WPF is Visual Studio 2017 Ready