This is a migrated thread and some comments may be shown as answers.

RadFileExplorer not filtering

7 Answers 156 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Gerry Vincent
Top achievements
Rank 1
Gerry Vincent asked on 10 Nov 2009, 06:39 PM
I am using the RadFileExplorer with the ExtendedFileProvider essentially unmodified from the samples provided and the sorting is working great but the filtering is not working. I have set the RadFileExplorer.Grid.AllowFilteringByColumn to true so I see the filters on each column but when you select the filter nothing happens.. Is there something else I need to do to enable the filtering?

7 Answers, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 16 Nov 2009, 01:46 PM
Hello Gerry,

Could you please provide little bit more information which sample did you use?
I am looking forward to hearing from you.

Regards,
Fiko
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Gerry Vincent
Top achievements
Rank 1
answered on 23 Nov 2009, 08:23 PM
Fiko,
I am still unable to get the RadFileExplorer to filter. The filters display but do not update the page and filter at all. On a separate note we have another page that uses a RadGrid attached to a datasource which works. I assume the RadFileExplorer doesn't filter because we aren't binding to a datasource in the traditional manor. We are using a very basic ExtendedFileProvider which is a subclass of the FileSystemContentProvider from the Telerik samples.

Does anyone have any sample code of how they setup a RadFileExplorer to work with filtering?
0
Fiko
Telerik team
answered on 25 Nov 2009, 11:32 AM
Hi Gerry,

I believe that this KB will be of help.

Best wishes,
Fiko
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Gerry Vincent
Top achievements
Rank 1
answered on 28 Nov 2009, 07:47 PM
Thanks but that isn't the issue we are having. We have enabled the filtering on the RadGrid within the RadFileExplorer which shows the drop down list ( contains, starts with, ends with, IsNull etc etc ) this filtering does not work when used with a ContentProvider. How can we implement filtering when we are not binding to a datasource? Does anybody have sample code of how to implement filtering with a ContentProvider?

0
Fiko
Telerik team
answered on 30 Nov 2009, 12:29 PM
Hi Gerry,

The RadFileExplorer control is based on several complex controls and most of their properties are overridden by design and cannot be used. In your case I recommend you use the approach shown in this Code library in order to implement the desired filtering.

I hope this helps.

Best wishes,
Fiko
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Gerry Vincent
Top achievements
Rank 1
answered on 30 Nov 2009, 04:21 PM
Fiko,
Adding a custom filter to the toolbar would work except we have another page on our application that uses only the RadGrid with the filtering and of course the filtering works with minimal changes. So our issue is that we want a consistent look and feel on the application so what I thought I would do is try to just "override" the filtering on the grid in the RadFileExplorer. I have copied a subset of our code below which I got from this example for the RadGrid ( http://www.telerik.com/help/aspnet-ajax/grdcustomfilteroptionswithhandling.html ). This does not seem to work either...? If the RadGrid object is available in the RadFileExplorer shouldn't I be able to do this? My ItemClick event never fires.

protected void Page_Load(object sender, EventArgs e)
{

        RadFileExplorer1.Grid.FilterMenu.Items.Clear();
        GridFilterMenu filterMenu = RadFileExplorer1.Grid.FilterMenu;
        RadMenuItem menuItem = new RadMenuItem();
        //filterMenu.ItemClick += new RadMenuEventHandler(FilterMenu_ItemClick);
        menuItem.Text = "Custom-Text (Contains)";
        menuItem.Value = "Contains";
        RadFileExplorer1.Grid.FilterMenu.Items.Add(menuItem);
         RadFileExplorer1.Grid.FilterMenu.ItemClick += new RadMenuEventHandler(FilterMenu_ItemClick);
}


public void FilterMenu_ItemClick(object sender,RadMenuEventArgs e)
{
      GridFilteringItem filterItem = RadFileExplorer1.Grid.MasterTableView.GetItems(GridItemType.FilteringItem)[0] as GridFilteringItem;
      filterItem.FireCommandEvent( "Filter", new Pair(e.Item.Value, e.Item.Attributes["columnUniqueName"]));
}

0
Fiko
Telerik team
answered on 03 Dec 2009, 12:51 PM
Hello Gerry,

I believe that this code library will be of help.

Greetings,
Fiko
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
FileExplorer
Asked by
Gerry Vincent
Top achievements
Rank 1
Answers by
Fiko
Telerik team
Gerry Vincent
Top achievements
Rank 1
Share this question
or