Ticket T1287366
Visible to All Users

TileViewInfo CalcRealViewHeight always returns zero

created 11 days ago

Hello,

I need to know the optimal height for a TileView the same way I get it from a GridView, but the result is always zero.

Code
TileViewInfo viewInfo = view.GetViewInfo() as TileViewdViewInfo; return viewInfo.CalcRealViewHeight(new Rectangle(0, 0, view.GridControl.Width, Int16.MaxValue));

How do I do this in a TileView?

Regards

Comments (1)
Sunkar (DevExpress Support) 10 days ago

    Hello,

    TileView cannot calculate its own minimum required height. The CalcRealViewHeight method is primarily used to calculate the optimal height for a detail view, but not all views support it.

    Could you please specify your usage scenario in greater detail? For what purpose are you using TileView and which LayoutMode are you using? What settings does your TileView have? If possible, please share a simple project demonstrating your usage scenario. This way, I will be in a better position to find a suitable solution.

    I look forward to your reply.

    Answers

    created 10 days ago

    Hi Sunkar, it's the default layout.

    I've already done it manually, but I don't understand why this view doesn't have that method when it's so easy to calculate.

    Regards.
    Juan

      Comments (1)
      Sunkar (DevExpress Support) 9 days ago

        Hi Juan,

        Thank you for the update. I am happy to hear that you found a suitable solution.

        Due to the specifics of the TileView implementation, there is no need to implement the CalcRealViewHeight method for it.

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.