0 Replies Latest reply on Sep 22, 2008 4:25 AM by COKFlex

    How to determine the text height in ADG?

    COKFlex Level 1
      Hi All,

      I am using AdvancedDataGrid to display which has variablerowHeight is set to True. Now all I wanted to know is that to detect the height of the text displayed in each row or height of each row.

      Because I am having horizontal grid lines after each row of text. Here the issue is, the space between the text an line drawn is not same at top and bottom. If I adjust that using "paddingTop" and "paddingBottom" set to 0 or some value, then if I change the fontname for the text, based on the fontname I use the space is either increased or decreased.

      The space between the text and line is same when single row records like below
      1) Using Font Comic Sans MS

      --------------------
      val1 val2 val3
      -------------------

      2) Using Font Arial
      ------------------------
      val1 val2 val3
      ------------------------

      But when I have the row values something like this, the issue is coming

      1) Using Font Comic Sans MS

      --------------------
      val1 val2 val3
      val4
      -------------------

      2) Using Font Arial
      ------------------------
      val1 val2 val3
      val4

      ------------------------

      Here in the second example, the space between the text and the line at the bottom is not same as the top.

      I hope I made my problem clear.

      Any help or suggestion would be helpful

      Thanks