Completed
Last Updated: 13 Jul 2015 10:39 by ADMIN
ADMIN
Ivan Petrov
Created on: 14 Mar 2012 08:28
Category: GridView
Type: Bug Report
1
FIX. RadGridView - HtmlViewDefinition - there are situations when the layout gets broken.
The following HTMLViewDefinition has a wrong layout when run:

HtmlViewDefinition view = new HtmlViewDefinition();
view.RowTemplate.Rows.Add(new RowDefinition());
view.RowTemplate.Rows.Add(new RowDefinition());
view.RowTemplate.Rows.Add(new RowDefinition());
view.RowTemplate.Rows[0].Cells.Add(new CellDefinition("column0", 0, 1, 1));
view.RowTemplate.Rows[0].Cells.Add(new CellDefinition("column1", 0, 1, 3));
view.RowTemplate.Rows[0].Cells.Add(new CellDefinition("column2", 0, 1, 1));
view.RowTemplate.Rows[1].Cells.Add(new CellDefinition("column3", 0, 1, 2));
view.RowTemplate.Rows[1].Cells.Add(new CellDefinition("column4", 0, 1, 1));
view.RowTemplate.Rows[2].Cells.Add(new CellDefinition("column5", 0, 1, 1));

The layout puts column5 over column1.

A possible workaround would be to refresh the rows in the grid's SizeChanged event handler:
        private void RadGridView1_SizeChanged(object sender, EventArgs e)
        {
            radGridView1.TableElement.ViewElement.UpdateRows(true);
        }
1 comment
ADMIN
Stefan
Posted on: 06 Apr 2015 11:01
Here is another case we well: http://stackoverflow.com/questions/29368800/column-boundaries-getting-overlapped-in-telerik-grid-for-winforms