DevExpress PivotGrid (Silverlight):弹出菜单不弹出

发布于 2024-12-27 14:47:55 字数 816 浏览 4 评论 0原文

我们正在使用 DevExpress Silverlight PivotGrid (11.2.7)。问题是,没有一个弹出窗口能够按预期工作。

这是 xaml 代码(请注意,默认情况下所有这些属性都是 True,不需要设置)

<dxpg:PivotGridControl 
x:Name="pivotGrid"

... data bindings ...

IsFieldValuePopupMenuEnabled="True"
IsHeaderMenuEnabled="True"
IsHeaderAreaMenuEnabled="True"
/>

显示网格的主机控件并加载数据后,右键单击任何相关区域都不会不要带任何一个弹出窗口(有 3 个)。

奇怪的是(或者不那么奇怪),在 devex 提供的示例 SL 项目中,一切都按预期工作。

示例应用程序和我们的项目之间的一个(显着)区别是我们使用 MEF,并且相关的 .xap 是根据登录的用户和其他一些内容动态加载的。

我们已经尝试了很多东西来找出问题所在,但还没有找到任何相关的东西。这是我们尝试过的:

  • 在满足导入后,将数据透视网格添加到代码隐藏中的主机选项卡;
  • 从代码隐藏导入后设置/重置上述属性;
  • 在 MEF 疯狂爆发之前将控件添加到项目的启动页面;
  • 我们还尝试通过继承pivotgrid控件来手动弹出菜单,但这并没有产生多大效果;
  • 启用 RedrawRegions 以确保弹出窗口不会在“下方”弹出。它不是;

任何指示或想法将不胜感激。

问候,

亚历克斯

We are using DevExpress Silverlight PivotGrid (11.2.7). The problem is that none of the popups work as one would expect.

Here is the xaml code (note that all of these properties are True by default and don't need to be set)

<dxpg:PivotGridControl 
x:Name="pivotGrid"

... data bindings ...

IsFieldValuePopupMenuEnabled="True"
IsHeaderMenuEnabled="True"
IsHeaderAreaMenuEnabled="True"
/>

Once the host control for the grid is shown and the data is loaded right-clicking on any of the relevant areas doesn't bring either of the popups (there are 3).

Strangely (or not so strangely) in the sample SL project provided by devex everything works as it should.

The one (significant) difference between the sample app and our project is that we are using MEF and relevant .xaps are loaded dynamically based on which user logged in and some other stuff.

We have tried a lot stuff to figure out what is wrong but haven't managed to find anything even remotely relevant. Here is what we have tried :

  • Adding the pivotgrid to the host tabpage in codebehind after imports have been satisfied;
  • Setting / resetting properties mentioned above after imports from codebehind;
  • Adding the control to the startup page of the project before the MEF madness kicks in;
  • We also tried to popup the menus manually by inheriting from the pivotgrid control, but that has not yielded much;
  • Enabled RedrawRegions to make sure the popup is not popping 'under'. It's not;

Any pointers or ideas would be greatly appreciated.

Regards,

Alex

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

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

发布评论

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

评论(1

笑饮青盏花 2025-01-03 14:47:55

看来这是我们当时使用的版本中的一些错误。
更新到 12.1 后,一切正常,无需我们进行任何修改。

看起来 devex 的家伙也有 bug...谁知道呢:)

It appears that this was some bug in the version we were using at the time.
After updating to 12.1 everything works like it should without any tinkering from our side.

Looks like devex guys have bugs too...who knew right :)

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