Hi, how can I stop fileexplorer from displaying certain folders? For example I might have a folder called "Admin" that other users do not need to see, how can I get file explorer to stop displaying this folder?
So far I have come up with doing a comma seperated selection of folder I do want shown on the
Configuration-ViewPaths attribute. However, there seems to be a bug with this as follows:
If I have something like Configuration-ViewPaths="~/Public, ~/Events", it appears that this js code - args.get_item().get_url(); will return two different kinds of paths depending on what the user does! If I click on a file in a ~/Public sub folder, get_url() returns this: ~/Public/Images/file.jpg, but if I click on a file in a subfolder in ~/Events, get_url() returns the absolute path i.e. iiswebsitename/Events/Images/filename.jpg. I'm thinking this might be a bug?
This is too inconsistant to do anything with the string returned! If I set Configuration-ViewPaths back to a non-comma separated selection i.e "~/", then there is no problem with the selection returned by get_url()..its always the absolute path, BUT then I'm not hiding certain folders I need to hide. The user can see all kinds of folders they do not need to.
Any help?
0
Lini
Telerik team
answered on 02 Apr 2009, 01:37 PM
Hi Matt Davis,
I think this happens because you have a space after the comma that separates the two folders in the ViewPaths property. If you set Configuration-ViewPaths="~/Public,~/Events" then both folders should resolve properly. I will log this as a bug and make sure it is fixed for the next release.
Sincerely yours,
Lini
the Telerik team
Check out
Telerik Trainer
, the state of the art learning tool for Telerik products.
0
Fiko
Telerik team
answered on 21 May 2009, 03:04 PM
Hello Matt,
I believe that this KB article is exactly what you need.