Hello guys!
I have updated the version of Telerik.Reporting in my project from 10.0.16.204 to 11.0.17.406 and suddenly faced with an issue with BookmarkId. All the BookmarkId which I set for the controls in my reports are simply ignored and new BookmarkId is generated instead since an update has been done.
Let's see an example. Here I set BookmarkId for html textbox:
and here is the html which is generated:
Could you please help me to figure out what has been changed between the versions and how can I set custom BookmarkId now?
Thanks in advance,
Kostya.
6 Answers, 1 is accepted
The screenshots are missing from your post, please attach them as .gif, .jpg, .jpeg or .png files if possible.
If you set the BookmarkId in report events, check if you modiy the processing HtmlTextBox - Changes on items in report events are not applied.
We also have tested to use the NavigateToBookmark action with the latest version of Reporting and did not encounter any issues.
Regards,
Katia
Telerik by Progress
Hi Katia,
Sorry for the missed images, I will attach them to this reply.
I am setting BookmarkId through the Design view as it was suggested here http://docs.telerik.com/reporting/designing-reports-interactivity-how-to-define-bookmark.
Best regards,
Kostya.
This change was introduced in R3 2016 release when we had to optimize the generation of bookmarks due to the new Table of Contents feature.
Let us know what is the scenario on your side and why it is required to use the data-bookmark-id attribute so we can suggest a possible solution.
Regards,
Katia
Telerik by Progress
After discussing this issue further with our development team, we decided to keep the original bookmark id in the rendered HTML. This functionality will be included in our future release, you can check updates in release history.
Regards,
Katia
Telerik by Progress
Hello Katia,
The data-bookmark-id is used to identify elements inside the report viewer with javascript to add some specific behavior on the front-end. One more issue was found inside one of previously well-worked reports - it was rendered as blank page in case when there was enough width to place all the elements on the page and when at least one of the elements was out of page width - report was rendered correctly. It was decided to make a rollback to the previous stable version which was used in the application to avoid other possible side effects.
Thank you for keeping behavior of BookmarkId. It will be considered if an update of Telerik.Reporting is finally needed.
Best regards,
Kostya
Thank you for clarifying your scenario. In general, we did not expect the actually rendered data-bookmark-id value to be used as a hook for user code, so we changed this along with the introduction of ToC section, which relies on the same mechanism.
Still we managed to return the original behavior whenever there is a specified BookmarkId. Note that BookmarkId is expected to be declared only along with NavigateToBookmark action.
Regarding the second issue, we would need to check the report's settings to suggest what change is causing this behavior. Most common reasons for the blank pages in the report are covered in Problem: Telerik Reporting renders blank pages KB article.
You can send us the problematic report in a support ticket.
Regards,
Katia
Telerik by Progress