This is a migrated thread and some comments may be shown as answers.
Bug found in FileExplorer when is should display long file names
1 Answer 21 Views
This is a migrated thread and some comments may be shown as answers.
Ricky Mattischeck
Top achievements
Rank 1
Ricky Mattischeck asked on 05 Feb 2010, 10:25 AM
Hi there,

for a MOSS project I added a RadFileExplorer-Control to my page that displays files stored in a document library I get by a custom FileBrowserContentProvider. This works like a charm, nothing to worry about that. But then I spotted a mysterious second file-extension-icon that sometimes occures next to my file-name (see screenshot 1) that has nothing to do with the file-extension of the currently displayed file.

I played around with that, like click and drag the entry and suddenly a third icon appeared and the others changed (see screenshot 2).

I came to the idea, to have a closer look to the html with firebug and added a style="height:300px;" to the surrounding div and et voila, more and more icons appeared (see screenshot 3).

FireBug told me that the css-class for rfeFileExtension pdf is defined in here: WebResource.axd?d=b3d9KT3TqBuE1FD9SKNyXT2yOMamrZGLKYxmjzaeeAijAXRYDX0RFYaiHS8qwuHExhiVcIRdcgI5NO_EvvVf2VTZO99YK11pRwcE3JF8cRV73uF9r8bbqn7JAv-DSDTr0&t=633995773712733758

In that file, all file-extensions do have their own style-class, like you can see here:

.RadFileExplorer .vbs { 
background-position:left -999px !important; 
.RadFileExplorer .css { 
background-position:left -200px !important; 
.RadFileExplorer .txt { 
background-position:left -232px !important; 
.RadFileExplorer .asp { 
background-position:left -264px !important; 


Isn't that a little bit workaround? What, if you have longer file-titles than the RadFileExplorer-Control can display in one line like in my case?

Do you have a quickfix for that issue?

Greetings from Germany,
Ricky Mattischeck

1 Answer, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 10 Feb 2010, 12:32 PM
Hi Ricky,

We use sprites in order to show icons for certain file types and this techniques is widely used in the CSS world and its is not a kind of hack. By default the file name is restricted by the RadFileExpolrer's Width and the long file/folder names are partially visible. For example the name of the PDF file shown in the attached screenshot is very long, but only the "I get by a custom"  is shown and the rest of the name is hidden. As you see this does not reflect on the other files in the grid.
Probably the behavior that you experience is cause by global CSS properties that override the RadFileExplorer's CSS properties and I recommend you to check this on your project. In case, however, that the problem still exists, could you please open a new support ticket and send me the page that reproduces the problem? I will try to reproduce the problem on mu side and do my best to provide a working solution as soon as possible.

I hope this helps.

Sincerely yours,
Fiko
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
Asked by
Ricky Mattischeck
Top achievements
Rank 1
Answers by
Fiko
Telerik team
Share this question
or