Starting with version 11.2, this functionality is supported out of-the-box when the TreeList.OptionsBehavior.EnableFiltering option is active.
This sample shows how a pop up column filter can be added to the TreeList control. Here is a descendant of the TreeList class with filtering capabilities that looks similar to the GridView's pop up column filters. The collection of column filter conditions can be saved and restored with the layout via TreeList's SaveLayout and RestoreLayout methods. Also column filters can be saved and restored separately from the rest of the layout.
Question Comments
Added By: Simon Hewitt at: 11/9/2012 8:18:29 AM
Just hangs with an invalid cast exception for me.
Added By: Iggy Pop at: 12/27/2012 4:06:42 PMalso does not work for me.... (exception)
Added By: Freddy Schlosser at: 6/10/2013 1:08:58 AMIt does not work for me. I convert the project to DevExpress 13. 1 and set the platform target to x86. I Receive an exception
Das Objekt des Typs "DevExpress.XtraEditors.Drawing.GridFilterButtonInfoArgs" kann nicht in Typ "DevExpress.XtraTreeList.TreeListFilterButtonInfoArgs" umgewandelt werden.
in
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new XtraForm1()); <==== this line throws the exception
}
I had the same error with the other Version 12.x from this sample.
Works great! Thx