We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

GridComboBoxColumn grouping

Hi,

is it possible to get the items gouped in a GridComboBoxColumn of sfdatagrid ?

also , is ut possible to customize the popup animation ?

any hints on this is welcome .

thanks and good day .

1 Reply

AS Ayyanar Sasi Kumar Jeyaraj Syncfusion Team December 21, 2015 01:49 PM UTC

Hi Issam,

Thank you for contacting Syncfusion support.
We have analyzed your query.

Query
Comments
 To get the items gouped in a GridComboBoxColumn of sfdatagrid
It is not possible in GridComboBoxColumn.But  you can able to group the items by SfGridMultiColumnDropDownControl.

By editing the control template of the SfMultiColumnDropDownControl,you can easily group the items in the GridMultiColumnDropDownList column.
Please refer the code snippet.
Code snippet:

<ControlTemplate  
              TargetType="Syncfusion:SfMultiColumnDropDownControl">

<ContentControl x:Name="PART_PopupContent">

 <Syncfusion:SfDataGrid x:Name="PART_SfDataGrid"

                                AllowDraggingColumns="True"                                  

                                ShowGroupDropArea="True"

                                AllowGrouping="True"

                                AllowResizingColumns="False"

                               AllowRowHoverHighlighting="True"

                               AutoGenerateColumns="{TemplateBinding                    

                                                      AutoGenerateColumns}"

<Syncfusion:SfDataGrid.GroupColumnDescriptions>

<Syncfusion:GroupColumnDescription   

                                            ColumnName="customername"/>

 </Syncfusion:SfDataGrid.GroupColumnDescriptions> </Syncfusion:SfDataGrid>

</ContentControl>



<Syncfusion:GridMultiColumnDropDownList  HeaderText="Country" MappingName="country" ItemsSource="{Binding Model,Source={StaticResource data}}"/>



To customize the popup animation
We made the animation to change the border color,by editing the control template of the SfMultiColumnDropDownControl.

XAML:

<Border.Style>

     <Style>

        <Style.Triggers>

             <EventTrigger RoutedEvent="Mouse.MouseEnter">

                    <BeginStoryboard>

                             <Storyboard>

                              <ColorAnimation Duration="0:0:1" To="Red"

                                    Storyboard.TargetProperty="BorderBrush.Color" />

                               </Storyboard>

                      </BeginStoryboard>

               </EventTrigger>

              </Style.Triggers>
      </Style>



Please refer the sample.

Sample: http://www.syncfusion.com/downloads/support/forum/121480/ze/WPF_(3)926818298


Please let us know if you have any further assistance.

Regards
Ayyanar

Loader.
Live Chat Icon For mobile
Up arrow icon