Removing DirectoryItems and Paging

2 posts, 0 answers
  1. Janice K
    Janice K avatar
    2 posts
    Member since:
    Nov 2007

    Posted 07 Oct 2010 Link to this post


    We've implemented a custom FileBrowserContentProvider to display directories and files from our services.  In order to increase performance and customer appeal, we allow paging and hide directories in the grid and only show files.  I've implemented a suggestion from other forums and removed the DirectoryItem objects from the grid in the OnExplorerPopulated event.  This worked great.

    My problem arises when the number of DirectoryItems exceeds the number of items in the page.  ie: 30 DirectoryItems in the list, PageSize is set to 25.  The grid will display there are "No records to display".
    Is there a way to intercept the event that is loading the items into the grid, and just not include the directories in the list in the first place?

  2. Fiko
    Fiko avatar
    1406 posts

    Posted 13 Oct 2010 Link to this post

    Hi Janice,

    I was able to reproduce the described behavior and recognize it as a problem in the RadFileExplorer control. The problem is caused by the fact that the changes, made in the ExplorerPopulated event handler, are not properly applied to the Grid control. I have fixed this, however, in the code of the control and the changes will be available in the upcoming BETA release of the RadControls for ASP.NET AJAX, scheduled for the end of this month.

    Thank you for bringing this problem to our attention. Your Telerik points were updated.

    All the best,
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top