RadWindow缩小了

时间:2015-05-28 06:32:54

标签: c# telerik radwindow

我遇到了Telerik RadWindow弹出窗口的问题。我有一个包含RadWindow弹出窗口的页面。页面中有一个网格,每行都有一个链接。每当我点击链接时,它都会打开RadWindow弹出窗口。这很好。但如果我多次关闭并重新打开RadWindow弹出窗口,RadWindow弹出窗口每次都会从所有侧面缩小一点。

我需要解决这个问题。任何人都可以帮我解决这个问题吗?

1 个答案:

答案 0 :(得分:0)

我自己解决了这个问题。 MinHeight <telerik:RadWindow> 属性添加到Width并分配相同的Height<telerik:RadWindowManager ID="RadWindowManager" runat="server"> <Windows> <telerik:RadWindow ID="radWindowPopup" Behavior="Close" VisibleTitlebar="false" Modal="true" runat="server" Width="725px" Height="500px" VisibleStatusbar="false" BorderWidth="0" BorderStyle="None" EnableEmbeddedSkins="false" CenterIfModal="true" OnClientClose="closePopup" Style="overflow: hidden;"> </telerik:RadWindow> </Windows> </telerik:RadWindowManager> 属性值。

代码(修复前):

<telerik:RadWindowManager ID="RadWindowManager" runat="server">
    <Windows>
        <telerik:RadWindow ID="radWindowPopup" Behavior="Close" VisibleTitlebar="false"
            Modal="true" runat="server" MinWidth="725px" MinHeight="500px" 
            Width="725px" Height="500px" VisibleStatusbar="false"
            BorderWidth="0" BorderStyle="None" EnableEmbeddedSkins="false"
            CenterIfModal="true" OnClientClose="closePopup" Style="overflow: hidden;">
        </telerik:RadWindow>
    </Windows>
</telerik:RadWindowManager>

代码(已修复): - ( MinWidth MinHeight 添加了相同的宽度 >高度属性)

select 
            tf.Brown,
            case when tf.type=2 
                 then case when tf.ColorType='S' THEN 'SE' ELSE 'CD' END
                 else case when tf.ColorType='S' THEN ltrim(rtrim(tf.Yellow))+'S' ELSE tf.Yellow end END as Yellow, 
            tf.baseNumber,
            tf.baseAlpha,
            null,
            null,
            SettlementDate,
            null,
            @Month,
            @Year,
            case 
                when status in ('T','I') and shapeType  in ('R','O','I','D') then 'TXN'
                when status = 'C' then 'CAN'
                when shapeType  in ('R','O','I','D') then 'TXN'
                end as FType,
            case
                when status in ('T','I') and shapeType  in ('R','O','I','D') then 'BT' 
                when shapeType  in ('R','O','I','D')  then 'SET'
                else ''
                end as StatusType,
            tf.ColoPiode,
            null,   
            null,
            null,   
            dbo.GetXDecimalPoint(PrimeNumber,FactorRate),
            dbo.GetXDecimalPoint(PrimeNumber,FactorAmount),
            dbo.GetXDecimalPoint(tf.PrintX,dbo.GetXDecimalPoint(@BrownX,FactorAmount * dbo.fnGetEx(tf.Brown,tf.Yellow,PrimeNumber,@BrownX,@Month,@Year))* dbo.fnGetEx(tf.Brown,tf.Yellow,@BrownX,tf.PrintX,@Month,@Year)),
            dbo.GetXDecimalPoint('US',dbo.GetXDecimalPoint(@BrownX,FactorAmount * dbo.fnGetEx(tf.Brown,tf.Yellow,PrimeNumber,@BrownX,@Month,@Year))* dbo.fnGetEx(tf.Brown,tf.Yellow,@BrownX,'US',@Month,@Year)),
            dbo.GetXDecimalPoint(cp.X,dbo.GetXDecimalPoint(@BrownX,FactorAmount * dbo.fnGetEx(tf.Brown,tf.Yellow,PrimeNumber,@BrownX,@Month,@Year))* dbo.fnGetEx(tf.Brown,tf.Yellow,@BrownX,cp.X,@Month,@Year)),
            dbo.GetXDecimalPoint(PrimeNumber,
            dbo.GetXDecimalPoint(PrimeNumber,ln)
            +dbo.GetXDecimalPoint(PrimeNumber,Pi)
            +dbo.GetXDecimalPoint(PrimeNumber,Units)
            ),  
            dbo.GetXDecimalPoint(tf.PrintX,
            dbo.GetXDecimalPoint(tf.PrintX,dbo.GetXDecimalPoint(@BrownX,ln * dbo.fnGetEx(tf.Brown,tf.Yellow,PrimeNumber,@BrownX,@Month,@Year))* dbo.fnGetEx(tf.Brown,tf.Yellow,@BrownX,tf.PrintX,@Month,@Year))
            +dbo.GetXDecimalPoint(tf.PrintX,dbo.GetXDecimalPoint(@BrownX,Pi * dbo.fnGetEx(tf.Brown,tf.Yellow,PrimeNumber,@BrownX,@Month,@Year))* dbo.fnGetEx(tf.Brown,tf.Yellow,@BrownX,tf.PrintX,@Month,@Year))
            +dbo.GetXDecimalPoint(tf.PrintX,dbo.GetXDecimalPoint(@BrownX,Units * dbo.fnGetEx(tf.Brown,tf.Yellow,PrimeNumber,@BrownX,@Month,@Year))* dbo.fnGetEx(tf.Brown,tf.Yellow,@BrownX,tf.PrintX,@Month,@Year))
            ),
            dbo.GetXDecimalPoint('US',
            dbo.GetXDecimalPoint('US',dbo.GetXDecimalPoint(@BrownX,ln * dbo.fnGetEx(tf.Brown,tf.Yellow,PrimeNumber,@BrownX,@Month,@Year))* dbo.fnGetEx(tf.Brown,tf.Yellow,@BrownX,'US',@Month,@Year))
            +dbo.GetXDecimalPoint('US',dbo.GetXDecimalPoint(@BrownX,Pi * dbo.fnGetEx(tf.Brown,tf.Yellow,PrimeNumber,@BrownX,@Month,@Year))* dbo.fnGetEx(tf.Brown,tf.Yellow,@BrownX,'US',@Month,@Year))
            +dbo.GetXDecimalPoint('US',dbo.GetXDecimalPoint(@BrownX,Units * dbo.fnGetEx(tf.Brown,tf.Yellow,PrimeNumber,@BrownX,@Month,@Year))* dbo.fnGetEx(tf.Brown,tf.Yellow,@BrownX,'US',@Month,@Year))
            ),
            dbo.GetXDecimalPoint(cp.X,
            dbo.GetXDecimalPoint(cp.X,dbo.GetXDecimalPoint(@BrownX,ln * dbo.fnGetEx(tf.Brown,tf.Yellow,PrimeNumber,@BrownX,@Month,@Year))* dbo.fnGetEx(tf.Brown,tf.Yellow,@BrownX,cp.X,@Month,@Year))
            +dbo.GetXDecimalPoint(cp.X,dbo.GetXDecimalPoint(@BrownX,Pi * dbo.fnGetEx(tf.Brown,tf.Yellow,PrimeNumber,@BrownX,@Month,@Year))* dbo.fnGetEx(tf.Brown,tf.Yellow,@BrownX,cp.X,@Month,@Year))
            +dbo.GetXDecimalPoint(cp.X,dbo.GetXDecimalPoint(@BrownX,Units * dbo.fnGetEx(tf.Brown,tf.Yellow,PrimeNumber,@BrownX,@Month,@Year))* dbo.fnGetEx(tf.Brown,tf.Yellow,@BrownX,cp.X,@Month,@Year))
            ),
            Quantity,
            0,
            0,
            0,
            SName,
            CR,
            0,
            GetDate()
            ,SType
            ,referenceNumber --transactionRefNo
            ,case WHEN Status NOT IN ('C','F','N','M') and shapeType not IN ('T','B','E') THEN 'OTC'
            WHEN Status = 'C' and shapeType not IN ('T','B','E') THEN 'CANC'
            WHEN Status ='N' THEN 'ON'
            WHEN Status = 'M' THEN 'CANC' END
            ,FactorAmount
            ,ISNULL(sm.IC ,'')
        from TriangleFinal tf (nolock)
        LEFT OUTER JOIN Country cp (NOLOCK)
        ON cp.Yellow = tf.Yellow
        LEFT JOIN Maroon sm (NOLOCK)
        ON tf.ColoPiode = sm.ColoPiode
        where tf.Brown=@Brown
        and tf.[Year]=@Year
        and tf.[Month]=@Month
        and tf.type <= case when @Brown='HK' then 3 else 1 end

希望这会有所帮助