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

GridTreeControl: column filtering

Thread ID:

Created:

Updated:

Platform:

Replies:

98387 Feb 24,2011 10:12 AM UTC Jan 3,2012 10:05 AM UTC WPF 3
loading
Tags: GridControl
Jorge Pampin
Asked On February 24, 2011 10:12 AM UTC

Hello,

Is it possible filter columns data in a GridTreeControl?

Thanks.


Rajasekar [Syncfusion]
Replied On February 25, 2011 02:14 PM UTC

Hi Jorge,

Thanks for using Syncfusion products.

At present we don’t have support for filtering in the Grid Tree Control. We have this support only with our GridDataControl.

Please let us know if you have any queries.

Thanks,
Rajasekar



Jean Louis Leroy
Replied On October 11, 2011 10:34 AM UTC

I have the same need, so I'll have to go about implementing this myself. First step seems to be turning the column header from mere text into a control. How can I do that ?

Jean-Louis Leroy


Rajasekar [Syncfusion]
Replied On January 3, 2012 10:05 AM UTC

Hi Jean,

You can achieve your requirement by using the below code snippet,

Code snippet [C#]
this.grid.ModelLoaded += new EventHandler(grid_ModelLoaded);

void grid_ModelLoaded(object sender, EventArgs e)
{
this.grid.InternalGrid.QueryCellInfo += new GridQueryCellInfoEventHandler(InternalGrid_QueryCellInfo);
}

void InternalGrid_QueryCellInfo(object sender, GridQueryCellInfoEventArgs e)
{
if (e.Style.RowIndex == 0 && e.Style.ColumnIndex > 0)
{
e.Style.CellType = "DataBoundTemplate";
e.Style.CellItemTemplateKey = "mytemplate";
}
}


Code snippet [XAML]


FontFamily="Segoe UI" FontSize="12" FontWeight="SemiBold" FontStyle="Italic"/>



Please let us know if you have any queries.

Thanks,
Rajasekar




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

;