Hide some folder of the grid data in Rad fileexplorer

2 posts, 0 answers
  1. Neha
    Neha  avatar
    18 posts
    Member since:
    Feb 2014

    Posted 13 May 2014 Link to this post

    Hello ,

    I am using RadFile explorer telerik control for upload file but in this when the rad fileexplorer is load i have made one method "OnClientload" so in this method I want to side some folder of the grid data at the time of load and disable the pointer events on that folder also so teh user not able to click on that folder.

    For Example:
              function OnClientLoad(explorer) {
                   var radExplorer = $find("RF1");
                  var getGrid = radExplorer.get_grid();
                  var table = getGrid.get_masterTableView();
                  var rows = table.get_dataItems();
                  for (var i = 0; i < rows.length; i++) {
                      var menuItem = rows[i];
                      if (menuItem.get_dataItem().Name == "catalog") {
                          $('.rgRow div:contains("catalog")').css('pointerEvents', 'auto');
                          $('.rgRow div:contains("catalog")').css('opacity', 0.4);
    but in this code the pointer events class is not working on the folde

  2. Vessy
    Vessy avatar
    1357 posts

    Posted 14 May 2014 Link to this post

    Hi Neha,

    The click events of the FileExplorer's RadGrid cannot be controlled with the standard pointer events. In case you want to make a specific rowin the gird unselectable, a possible way to achieve it could be to deleselect it in the FileExplorer's OnClientItemSelected event handler. For example:
    <telerik:RadFileExplorer runat="server" ID="RF1" OnClientItemSelected="OnClientItemSelected">
        <Configuration ViewPaths="~/Images" UploadPaths="~/Images" DeletePaths="~/Images" />
        function OnClientItemSelected(explorer, args) {
            if (args.get_item().get_name() == "catalog") {

    Nevertheless, I will suggest you to take a look at the approach from this help article which will hide the desired folders both from the Grid and the TreeView of the control: Hide certain directories and files in RadFileExplorer


    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

  3. DevCraft R3 2016 release webinar banner
Back to Top