IDataItem should not be "internal"

3 posts, 1 answers
  1. Olivier
    Olivier avatar
    2 posts
    Member since:
    Jun 2019

    Posted 30 Jun 2020 Link to this post

    Hi,

    I'm not reporting an issue here, just making a suggestion about a minor change that I would consider as an improvement.

    I'm loading at runtime a report template that was created using the standalone report designer. I'm dynamically replacing all the 'DataSources' of the report, and thus I have to go through all the items of the report to find them all.

    The first step is to flatten all the items with a recursive call, starting from the 'Report'. I get a list of ReportItem, and I can cycle through this list and find those that inherits from 'DataItem'. From there, I just have to pick all the distinct DataSources from these DataItems.

    And it almost works, except that I'm missing the DataSource from the Report itself, as the Report class does not inherit from DataItem but implements IDataItem.

    If IDataItem was public, I could simply use it instead of 'DataItem', but as it is internal I have to handle a special case. And I don't like that.

    Maybe I'm missing a good reason to keep this interface internal, but if not my suggestion is to make it public.

    Regards,

    Olivier

  2. Answer
    Katia
    Admin
    Katia avatar
    760 posts

    Posted 03 Jul 2020 Link to this post

    Hi Olivier,

    Thank you for sharing your idea!

    We consider it as a valid feature request and we logged it into our Feedback portal here - https://feedback.telerik.com/reporting/1474713-make-idataitem-interface-public. This is the official process for keeping track of all feature requests and accessing the demand for them.

     

    Regards,
    Katia
    Progress Telerik

    Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
    Our thoughts here at Progress are with those affected by the outbreak.
  3. Olivier
    Olivier avatar
    2 posts
    Member since:
    Jun 2019

    Posted 03 Jul 2020 in reply to Katia Link to this post

    Hi Katia,

    Thank you for your answer, and also for the information about the feedback portal.

    Regards,

    Olivier

Back to Top