This is a migrated thread and some comments may be shown as answers.

Autosizerows not working properly

1 Answer 28 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 04 May 2011, 09:55 AM
Hello,

I want to create a grid where one record is shown on 2 lines. I have done this by using the htmlviewdefenition.
When I enlarge the font size and then set the autosizerows property to true, the header isn't displayed properly. (Attached you will find a screenshot of the grid)

My code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Telerik.WinControls.UI;
 
namespace TestTelerikGrid3
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
 
        private void Form1_Load(object sender, EventArgs e)
        {
            HtmlViewDefinition view = new HtmlViewDefinition();
            view.RowTemplate.ReadXml("GridLayout.htm");
 
            radGridView1.ViewDefinition = view;
 
            radGridView1.Font = new Font("Segoe UI", 15.75F,FontStyle.Regular);
            radGridView1.AutoSizeRows = true;
        }
    }
}
 
Html:
<table>
<tr>
    <td colspan="2">Column1</td>
</tr>
<tr>
    <td>Column2</td>
    <td>Column3</td>
</tr>
</table>

I am using gridview version 2011.1.11.419.

Can anyone help me with this problem?

Regards,
Steve

1 Answer, 1 is accepted

Sort by
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 05 May 2011, 09:37 AM
Hello Steve,

This is a known issue at the moment, You can view and vote for the issue in the Public Issue Tracking System here (the more votes it gets, the faster it will be fixed).

I hope that helps but let me know if you have any questions
Richard
Tags
GridView
Asked by
Steve
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Share this question
or