Telerik RadControls RadFormDecorator - 关于定位的两个问题

发布于 2024-08-29 19:06:23 字数 445 浏览 2 评论 0原文

我在 vs 2008 中使用 asp.net 和 c# web 应用程序

问题 1:

我不知道为什么 Telerik RadControls- RadFormDecorator 移动一些控件(例如按钮或复选框)并在浏览器中查看后在我的表单中向上或向下更改它们的位置...

我将这些控件放在表格的单元格中...但无济于事,

我遇到了有关 radajaxmanager 的问题,并通过将 UpdatePanelsRenderMode 属性设置为内联问题解决了 - 但这里没有这样的属性... 这是怎么回事?

问题2: 我用 radformdecorator (telerik radcontrols) 控件装饰我的按钮和复选框... 当我单击复选框将其设置为 true 或 false 时,我的网页定位会上升(就像发生回发时一样,但这不是回发) 我怎样才能防止这个问题?

感谢您的关注

i am using asp.net with c# web app in vs 2008

problem 1:

i do not know why Telerik RadControls- RadFormDecorator Moves some controls (such as Buttons or chech boxes) and changes their positioning up or down in my form after viewing in browser...

i put those controls in a cell of a table ... but not help

i had this problem about radajaxmanager and by setting UpdatePanelsRenderMode property to inline problem solved - but here there is no property like that...
what is going on here?

problem2:
i decorated my buttons and chechboxes with radformdecorator (telerik radcontrols) control...
when i click on a checkbox to set it to true or false so my webpage positioning goes to up (like when postback occurs , but this is not postback)
how can i prevent this problem ?

thanks for attention

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

深居我梦 2024-09-05 19:06:23

在某些情况下会发生这种情况,因为 RadFormDecorator 样式复选框的方式 - 真正的复选框隐藏在视口之外。然而,当单击修饰的复选框时,浏览器会尝试将焦点集中在真正的复选框上,因此会发生“跳跃”。为了避免这种情况,您应该将 position:relative 设置为父容器。

This happens in some scenarios because of the way RadFormDecorator styles checkboxes - real checkboxes are hidden outside of the viewport. When the decorated checkbox is clicked however, browsers try to focus the real checkbox, hence the "jumping". To avoid that, you should set position:relative to the parent container.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文