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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridComboBoxColumn grouping

Thread ID:

Created:

Updated:

Platform:

Replies:

121480 Dec 18,2015 02:51 PM UTC Dec 21,2015 01:49 PM UTC WPF 1
loading
Tags: SfDataGrid
issam
Asked On December 18, 2015 02:51 PM UTC

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 .

Ayyanar Sasi Kumar Jeyaraj [Syncfusion]
Replied On 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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;