使用PXPopupRedirectException调用另一个图形作为页内弹出窗口时更改高度/宽度 [英] Changing the height/width when calling another graph as an in-page popup using PXPopupRedirectException

查看:24
本文介绍了使用PXPopupRedirectException调用另一个图形作为页内弹出窗口时更改高度/宽度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们通过图形扩展名向销售订单页面添加了一个按钮。当我们单击此新按钮时(基于选定的详细信息行),我们调用PXPopupRedirectException并调用另一个图来表示弹出面板。我们的问题是默认大小非常小。如果可能的话,我们希望弹出面板/图形的宽度为父页面的100%。

We added a button via a graph extension to the sales order page. When we click this new button (based on selected detail row) we call a PXPopupRedirectException calling another graph to represent the popup panel. The problem we have is the default size is very small. We would like to have the width of the popup panel/graph be 100% of the parent page if possible.

按钮中的调用使用此按钮...

The call in our button uses this...

throw new PXPopupRedirectException(graph, string.Empty, true);

从下面的屏幕快照中,您可以看到面板打开了多小。默认情况下,我们如何做才能使面板自动适应红色区域中概述的父区域的全部大小?如果我们将图形作为标准的新选项卡/页面打开,则看起来不错。

From the screen shot below you can see how small the panel opens. What can we do by default to get the panel to auto fit the full size of the parent area as outlined in the red box? If we open the graph as a standard new tab/page then it looks fine.

推荐答案

这是当前的默认修复方法:您可以使用图形在屏幕代码的后面设置弹出窗口的大小:

Here's the current default fix: You can set the size of a popup window in the code-behind of the screen using your graph:

public partial class Page_CR301000 : PX.Web.UI.PXPage
{
    protected void Page_Init(object sender, EventArgs e)
    {
        Master.PopupHeight = 700;
        Master.PopupWidth = 900;
    }
}

不幸的是,大小无法设置为百分比使用此方法的父屏幕宽度。

Unfortunately, the sizes can't be set as percentages of the parent screen width using this method.

请描述您的情况和详细要求吗?我们也许可以给我们的弹出窗口更多的灵活性。谢谢!

Could you please describe your scenario and detail requirements? We might be able to give our popups a little more flexiblility. Thanks!

这篇关于使用PXPopupRedirectException调用另一个图形作为页内弹出窗口时更改高度/宽度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆