This is a migrated thread and some comments may be shown as answers.

Order of Export Formats in Dropdown

6 Answers 147 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Stephen McDaniel
Top achievements
Rank 1
Stephen McDaniel asked on 23 Mar 2009, 06:23 PM
I need to change the order of the formats listed in the Export dropdown.  I know I can rename and hide formats, but is there a way to reorder them?

Thanks,
-Stephen

6 Answers, 1 is accepted

Sort by
0
Ivan
Telerik team
answered on 24 Mar 2009, 08:58 AM
Hello Stephen McDaniel,

The rendering extensions from the drop-down menu in the Report Viewer are always sorted alphabetically by their description. Currently there is no way to change that order. Since defining a custom order of the extensions (e.g. from the most frequently used to the least frequently used) does make sense in some cases, we shall consider implementing this feature in a future release of Telerik Reporting. Any feedback on that matter from you will be greatly appreciated.

All the best,

the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Stephen McDaniel
Top achievements
Rank 1
answered on 24 Mar 2009, 05:03 PM
Sorry, I was not specific enough.  I see that the WinForms viewer does sort them alphabetically.  But I'm using the WebForm viewer and it does not display the formats in any kind of order.

I think at the very least, the WebForms viewer should be consistent with the WinForms one by sorting the formats by description.  This small change would help me because I'm getting complaints that the formats are in an arbitrary order - so at least if it was alphabetical, the ordering would be more logical.  But it would also be nice, if I could specify an "DisplayIndex" in the app/web.config for each extension so I could order the extensions in whatever order I wanted.  The DisplayIndex property could just be an integer at the <Extension> level in the config.

Thanks,
-Stephen
0
Accepted
Ivan
Telerik team
answered on 25 Mar 2009, 09:33 AM
Hi Stephen McDaniel,

Please, excuse us for the misunderstanding. We have confirmed that the Web Report Viewer does not sort the rendering extensions from the drop-down menu in any particular order indeed. This minor issue is filed in our bug-tracking system and it will be fixed shortly in the upcoming service pack. Meanwhile you can use the following workaround as a temporary solution:

Open the web.config file of your web site and paste the following XML snippet right after the root configuration element:

  <configSections> 
    <section name="Telerik.Reporting" type="Telerik.Reporting.Processing.Config.ReportingConfigurationSection, Telerik.Reporting.Processing, Version=3.0.9.325, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" allowLocation="true" allowDefinition="Everywhere" /> 
  </configSections> 
  <Telerik.Reporting> 
    <Extensions> 
      <Render> 
        <Extension name="IMAGE" visible="false" /> 
        <Extension name="MHTML" visible="false" /> 
        <Extension name="PDF" visible="false" /> 
        <Extension name="RTF" visible="false" /> 
        <Extension name="XLS" visible="false" /> 
        <Extension name="CSV" visible="false" /> 
        <Extension name="My.PDF" type="Telerik.Reporting.ImageRendering.PdfReport, Telerik.Reporting.Processing, Version=3.0.9.325, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" /> 
        <Extension name="My.CSV" type="Telerik.Reporting.CsvRendering.CsvRenderingExtension, Telerik.Reporting.Processing, Version=3.0.9.325, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" /> 
        <Extension name="My.XLS" type="Telerik.Reporting.ExcelRendering.Excel97.ExcelReport, Telerik.Reporting.Processing, Version=3.0.9.325, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" /> 
        <Extension name="My.RTF" type="Telerik.Reporting.RtfRendering.RtfReport, Telerik.Reporting.Processing, Version=3.0.9.325, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" /> 
        <Extension name="My.IMAGE" type="Telerik.Reporting.ImageRendering.ImageReport, Telerik.Reporting.Processing, Version=3.0.9.325, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" /> 
        <Extension name="My.MHTML" type="Telerik.Reporting.HtmlRendering.MHtmlRenderingExtension, Telerik.Reporting.Processing, Version=3.0.9.325, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" /> 
      </Render> 
    </Extensions> 
  </Telerik.Reporting> 

In general, what it does is to simply hide the original rendering extensions from the drop-down menu, and then registers all of them again, this time in the correct order.

Please, excuse us for the temporary inconvenience.

Kind regards,

the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Stephen McDaniel
Top achievements
Rank 1
answered on 25 Mar 2009, 09:39 PM
Great, thanks.  This solution works for me.  It seems a bit odd having to duplicate all the extensions, but it does let me specify a custom order in the dropdown. 

It would still be nice if, in the future, there was a more elegant way of specifying the display order of the extensions - in a way that I didn't have to redefine all the extensions manually (with their fully-qualified type, etc).

But this does get the job done.  Thanks!

-Stephen
0
Kirill Bykov
Top achievements
Rank 1
answered on 14 Aug 2009, 11:56 AM
Doesn't work for me

I removed all formats and then registered them in the following order PDF -> XLS -> CSV.
Bit I still see that CSV appears ealier than Excel in the export list.

 

0
Steve
Telerik team
answered on 14 Aug 2009, 12:32 PM
Hello Kirill,

Indeed you are correct. We've implemented sorting for the export formats in the dropdown due to high demand, but forgot about scenarios where you would like a custom order. I've logged the issue in our bug tracking system and it would be addressed in a subsequent release.

Your Telerik points have been updated for bringing this to our attention.

All the best,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
General Discussions
Asked by
Stephen McDaniel
Top achievements
Rank 1
Answers by
Ivan
Telerik team
Stephen McDaniel
Top achievements
Rank 1
Kirill Bykov
Top achievements
Rank 1
Steve
Telerik team
Share this question
or