[英]Infragistics WebDataGrid not getting disabled in chrome
I am working on Infragistics 17.1, I want to disable the Infragistics WebDataGrid.我正在研究 Infragistics 17.1,我想禁用 Infragistics WebDataGrid。 So I used
webDataGrid.Enable = False
property.所以我使用了
webDataGrid.Enable = False
属性。
This is working in Internet Explorer perfectly ie grid is in grey out and disabled state, but in chrome view is not in disabled state.这在 Internet Explorer 中完美运行,即网格处于灰色和禁用状态,但在 chrome 视图中未处于禁用状态。
I have some findings like, after rendering in HTML the webdatagrid element have attribute disabled="disabled"
, because of this IE grid is looks in disabled state, but somehow its is not working for chrome.我有一些发现,例如,在 HTML 中呈现后,webdatagrid 元素具有属性
disabled="disabled"
,因为此 IE 网格看起来处于禁用状态,但不知何故它不适用于 chrome。
Maybe somebody already faced this issue and have solution for this.也许有人已经遇到过这个问题并对此有解决方案。
Thanks in Advance!提前致谢!
I have workaround for this issue something like below with css changes.我有解决这个问题的方法,类似于下面的 css 更改。
[disabled] { pointer-events: none; color: grey; }
Not only for the WebDataGrid of Infragistics but for many other controls which having same problem this works.不仅适用于 Infragistics 的 WebDataGrid,而且适用于许多其他具有相同问题的控件。 We can use more appropriate css selector to apply those properties to specify controls only.
我们可以使用更合适的 css 选择器来应用这些属性来仅指定控件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.