I have written a custom content provider for RadFileExplorer, and have been pretty happy with the results, with one little caveat, and that is the ability to specify an icon for the files.
I create my FileItems, and everything is working fine, except for the icon. I am essentially doing this:
It seems to me that specifying the extension field of the FileInfo object should be sufficient to decide what icon is displayed if it is has been specified, and the control can look elsewhere if it is not. I am using the same semantics as Path.GetFileExension() used in the samples. If this isn't used to specify the icon, what in the heck is it used for?
The only way I can get the icon to appear is to put the file extension at the end of the name. I do not want the file extension to appear as part of the the file name. This seems like very odd behavior given that the extension is specified explicitly. Is this a bug?
I create my FileItems, and everything is working fine, except for the icon. I am essentially doing this:
new FileItem(
"123456789", // name
".aspx", // extension
0, // size
"123/456/789", // path
"Handler.aspx?sid=123456789", // url
null,
PathPermissions.Read)
It seems to me that specifying the extension field of the FileInfo object should be sufficient to decide what icon is displayed if it is has been specified, and the control can look elsewhere if it is not. I am using the same semantics as Path.GetFileExension() used in the samples. If this isn't used to specify the icon, what in the heck is it used for?
The only way I can get the icon to appear is to put the file extension at the end of the name. I do not want the file extension to appear as part of the the file name. This seems like very odd behavior given that the extension is specified explicitly. Is this a bug?