Order of Export Formats in Dropdown

7 posts, 1 answers
  1. Stephen McDaniel
    Stephen McDaniel avatar
    48 posts
    Member since:
    Mar 2008

    Posted 23 Mar 2009 Link to this post

    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
  2. Ivan
    Admin
    Ivan avatar
    114 posts

    Posted 24 Mar 2009 Link to this post

    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.
  3. Stephen McDaniel
    Stephen McDaniel avatar
    48 posts
    Member since:
    Mar 2008

    Posted 24 Mar 2009 Link to this post

    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
  4. Answer
    Ivan
    Admin
    Ivan avatar
    114 posts

    Posted 25 Mar 2009 Link to this post

    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.
  5. Stephen McDaniel
    Stephen McDaniel avatar
    48 posts
    Member since:
    Mar 2008

    Posted 25 Mar 2009 Link to this post

    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
  6. Kirill Bykov
    Kirill Bykov avatar
    10 posts
    Member since:
    Jan 2009

    Posted 14 Aug 2009 Link to this post

    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.

     

  7. Steve
    Admin
    Steve avatar
    10940 posts

    Posted 14 Aug 2009 Link to this post

    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.
Back to Top