Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HtmlEditor does not show toolbar images when EnablePartialRendering=true #324

Closed
2 tasks
andrewchilcott opened this issue Apr 11, 2017 · 1 comment
Closed
2 tasks

Comments

@andrewchilcott
Copy link

The AJAX Control Toolkit \16.1.1

The installation method

  • Installer

Minimal steps to reproduce the bug

Add an HtmlEditorExtender to a TextBox in the EditItemTemplate of a ListView inside an UpdatePanel inside an ascx UserControl inside an aspx page using site.Master.

Within the site.Master file an asp:ScriptManager is loaded

Actual result

When ScriptManager EnablePartialRendering = true then the control appears without any images on the buttons.
htmleditorlostassets

Expected result

When ScriptManager EnablePartialRendering = false then the control appears with images on the buttons.
htmleditorwithassets

Browser(s) used

A site deployment method

  • VS development web-server,

Obviously, turning partial rendering off is not what I want to do. I want the control to work with partial rendering of the page.

I understand from lots of old postings from a Google search that this was a known problem over several years. I could not find a resolution. Was this one of the bugs that was addressed when DevExpress took over the code maintenance? If so, what is the solution?

Andrew Chilcott

@MikhailTymchukDX
Copy link
Contributor

Hi @andrewchilcott,
 
I would like to thank you for bringing such an interesting issue to our attention. It was not addressed earlier, because we didn't test such CSS-rich control inside an UpdatePanel.
 
This bug comes from the way toolkit registers CSS links for a control.
 
When there is no UpdatePanel or EnablePartialRendering = false the links to CSS resources are injected into the code via server code: https://github.com/DevExpress/AjaxControlToolkit/blob/master/AjaxControlToolkit/ToolkitResourceManager.cs#L203-L208
 
However, when an async postback arrives from an UpdatePanel, these links are rendered inside the UpdatePanel's DOM using the client script: https://github.com/DevExpress/AjaxControlToolkit/blob/master/AjaxControlToolkit/ToolkitResourceManager.cs#L221-L235
 
We cannot suggest any workaround for this issue, but the fix is underway.

@MikhailTymchukDX MikhailTymchukDX added this to the 17.1.1 milestone May 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants