RadFileExplorer not filtering

8 posts, 0 answers
  1. Gerry Vincent
    Gerry Vincent avatar
    4 posts
    Member since:
    Oct 2009

    Posted 10 Nov 2009 Link to this post

    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?
  2. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 16 Nov 2009 Link to this post

    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.
  3. Gerry Vincent
    Gerry Vincent avatar
    4 posts
    Member since:
    Oct 2009

    Posted 23 Nov 2009 Link to this post

    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?
  4. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 25 Nov 2009 Link to this post

    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.
  5. Gerry Vincent
    Gerry Vincent avatar
    4 posts
    Member since:
    Oct 2009

    Posted 28 Nov 2009 Link to this post

    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?

  6. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 30 Nov 2009 Link to this post

    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.
  7. Gerry Vincent
    Gerry Vincent avatar
    4 posts
    Member since:
    Oct 2009

    Posted 30 Nov 2009 Link to this post

    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"]));
    }

  8. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 03 Dec 2009 Link to this post

    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.
Back to Top