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

Issue in HtmlViewDefinition

1 Answer 58 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Fabien
Top achievements
Rank 2
Fabien asked on 03 Feb 2009, 09:14 AM
Hi,

I discovered a new issue in the last version of components.

let me show your part of code. (I really cannot provide sample, I have no time for this, I can patch this myself, but perhaps this will help someone)

RadGridView properties in designer code file :
this.RadGridView_Object.AutoSize = true
this.RadGridView_Object.MasterGridViewTemplate.AllowAddNewRow = false
this.RadGridView_Object.MasterGridViewTemplate.AllowCellContextMenu = false
this.RadGridView_Object.MasterGridViewTemplate.AllowColumnChooser = false
this.RadGridView_Object.MasterGridViewTemplate.AllowColumnHeaderContextMenu = false
this.RadGridView_Object.MasterGridViewTemplate.AllowColumnReorder = false
this.RadGridView_Object.MasterGridViewTemplate.AllowDeleteRow = false
this.RadGridView_Object.MasterGridViewTemplate.AllowDragToGroup = false
this.RadGridView_Object.MasterGridViewTemplate.AllowRowResize = false
this.RadGridView_Object.MasterGridViewTemplate.AutoExpandGroups = true
this.RadGridView_Object.MasterGridViewTemplate.EnableSorting = false
this.RadGridView_Object.MasterGridViewTemplate.ShowFilteringRow = false
this.RadGridView_Object.MasterGridViewTemplate.ShowRowHeaderColumn = false
this.RadGridView_Object.ShowGroupPanel = false;
this.RadGridView_Object.AutoSizeRows = true

RadGridView columns definition (pRadGridView is RadGridView_Object)  :
// Start update 
pRadGridView.GridElement.BeginUpdate(); 
 
// Erase content 
pRadGridView.MasterGridViewTemplate.AutoGenerateColumns = false
pRadGridView.DataSource = null
pRadGridView.MasterGridViewTemplate.Rows.Clear(); 
pRadGridView.MasterGridViewTemplate.Columns.Clear(); 
#region Add columns 
#region Special Column for colorization 
GridViewDataColumn Colorization_Column = new GridViewDataColumn("Colorization""Colorization"); 
Colorization_Column.IsVisible = false
Colorization_Column.HeaderText = "Colorization"
pRadGridView.MasterGridViewTemplate.Columns.Add(Colorization_Column); 
#endregion 
 
/// ADD SOME OTHER COLUMNS 
#endregion 
#region Add Group View Definition 
ColumnGroupsViewDefinition _ColumnGroupsViewDefinition = new ColumnGroupsViewDefinition(); 
 
/// Add colums groups, some columns, two lines 
 
pRadGridView.ViewDefinition = _ColumnGroupsViewDefinition; 
#endregion 
#region Databind 
 
foreach(Object item in ListOfObject) 
 GridViewDataRowInfo row = pRadGridView.MasterGridViewTemplate.Rows.AddNew(); 
 row.Cells["col1"].Value = item.value1; 
// and others 
#endregion 
 
// End of update 
pRadGridView.GridElement.EndUpdate(); 
 
// Best fit columns 
pRadGridView.MasterGridViewTemplate.BestFitColumns(); 

Ok, run this and what appends....

The first issue is that the two header rows are not displayed, only the first one.
Anyway, just click on first DataRow, the second Header row is diplayed but First DataRow is behind... Wow

So, the only one solution for me, was to set this.RadGridView_Object.AutoSizeRows = false

hope this will help.

Best regards


EDIT : this issue is for ViewDefinitions and not only Html one. Sorry.
see bug on  : Image

1 Answer, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 03 Feb 2009, 05:26 PM
Hello Fabien,

Thank you for reporting this issue.

I managed to reproduce it by using the code provided by you. We will address the issue in our upcoming release - Q1 2009. I have added points to your account for the suggestions.

Should you have any other questions, please write us back.

Greetings,
Jack
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
GridView
Asked by
Fabien
Top achievements
Rank 2
Answers by
Jack
Telerik team
Share this question
or