某些控件的 CSS 丢弃
我们有一个相当复杂的应用程序设计,带有一堆 Telerik 控件。我们时常会遇到文件关联 CSS 丢失且控件未设置样式的问题。例如,在异步回发(页面生命周期中的几次回发)之后,文本框、日期选择器、组合和其他控件的 CSS 都会丢失。它并不完整;一些控件仍然像平常一样显示,我不认为它包含所有内容。
知道为什么以及如何调试并确定它们丢失的原因吗?我能做些什么来解决这个问题吗?
谢谢。
布莱恩
We have a pretty complex application design with a bunch of telerik controls. Every now and then, we get issues where the associated CSS to a file are lost, and the controls are not styled. So for instance, after an async postback (a couple of postbacks into the life of the page), the CSS for the textbox, date picker, combo, and other controls are lost. It's not complete; some controls still appear as they normally do, I don't think it's all inclusive.
Any idea why and how I can debug, and determine why they get lost? Anything I can do to work around it?
Thanks.
Brian
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您是否尝试过RadStyleSheetManager?
Have you tried the RadStyleSheetManager?
RadStyleSheetManager 可以提供帮助,但静态定义 CSS 可以解决这个奇怪的问题。 RadStylesheetManager 也会动态获取对该控件的引用,并且会出现相同的问题。
RadStyleSheetManager can help, but statically defining the CSS is the solution to this weird problem. RadStylesheetManager also gets references to the control dynamically and would have the same problem.