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

GroupDropArea acts weird if the height is too small

Using 11.2 WPF controls.  I have a GridDataControl with ShowGroupDropArea set to true.

I cannot set the GroupDropAreaHeight to anything less than 50 or the column that is grouped hides behind the grid.  Is there a way to customize how the columns display in the group area, because it seems there is way too much padding for what it needs.

 

Thanks

Brent


1 Reply

GA Gobinath A Syncfusion Team November 19, 2013 01:17 PM UTC

Hi Brent,

 

Sorry for the delay in getting back to you.

We have analyzed your query and you can customize the Column appearance in the GroupDropArea by using the following code snippet.

 

Code snippet[C#]:

void datagrid_Loaded(object sender, RoutedEventArgs e)

        {

            var model = FindDescendant(datagrid, typeof(GridDataGroupDropAreaGridImpl)) as GridDataGroupDropAreaGridImpl;

            if (model != null)

                model.QueryCellInfo += new GridQueryCellInfoEventHandler(model_QueryCellInfo);

        }

 

 

void model_QueryCellInfo(object sender, GridQueryCellInfoEventArgs e)

        {

 

            if (e.Style.CellType == "SortableHeaderCell")

            {

                e.Style.Background = Brushes.Cyan;

                e.Style.Foreground = Brushes.Red;

            }

        }

 

 

 

Regarding GroupDropArea Height Related Query: We have tested the reported issue in different scenario but we are unable to reproduce the issue. Could you please check the below sample.

 

Sample: SyncGDC.zip

 

Please let us know if you have any queries.

 

Regards,
Gobinath A.


Loader.
Up arrow icon