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

GridTreeControl: column filtering

Hello,

Is it possible filter columns data in a GridTreeControl?

Thanks.


3 Replies

RA Rajasekar Syncfusion Team 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




JL Jean Louis Leroy 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



RA Rajasekar Syncfusion Team 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




Loader.
Live Chat Icon For mobile
Up arrow icon