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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GroupDropArea acts weird if the height is too small

Thread ID:

Created:

Updated:

Platform:

Replies:

114041 Oct 24,2013 01:50 PM UTC Nov 19,2013 01:17 PM UTC WPF 1
loading
Tags: GridControl
Brent Hoskisson
Asked On October 24, 2013 01:50 PM UTC

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


Gobinath A [Syncfusion]
Replied On 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.


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

;