Just to let you know that if I load the layout into a gridview before the initial data load the formatting of some cells does not work. Please refer to the attached example. Simply changing the two lines of code will work around the issue. If the data is reloaded afterwards by means of the third button, the problem does not reoccur. So it's a matter of loading data before loading a layout for the first time. Workaround: set the DataSource after the layout is loaded
Steps to reproduce: 1) Add RadGridView control 2) Use GridViewDecimalColumn: DataTable customDataTable = new DataTable(); sampleDataTable.Columns.Add("Column name", typeof(double)); 3) Set the right-to-left property of the control to true: this.radGridView1.RightToLeft = System.Windows.Forms.RightToLeft.Yes; 4) Set the following CellElement properties using CellFormatting event: void radGridView1_CellFormatting(object sender, Telerik.WinControls.UI.CellFormattingEventArgs e) { if (e.CellElement is GridDataCellElement) { e.CellElement.RightToLeft = false; } } 5) Re-size the form manually until the horizontal scroll-bar disappears 6) Resize a GridHeaderCellElement in left direction and you will notice that the GridDataCellElements from this columns are resized to the right direction Whenever I'm trying to expand any column the header expands as expected but the column itself is expanding in the other direction so the headers and columns content are not aligned. Expected result: expand the column content properly Actual result: the GridDataCellElements from this columns are expanding incorrectly
Steps to reproduce: 1) Add RadGridView control 2) Use GridViewDecimalColumn: DataTable customDataTable = new DataTable(); sampleDataTable.Columns.Add("Column name", typeof(double)); 3) Set the right-to-left property of the control to true: this.radGridView1.RightToLeft = System.Windows.Forms.RightToLeft.Yes; 4) Re-size the form manually until horizontal scroll-bar appears and you will notice that the left border is missing Expected result: the left border of the GridRowHeaderCellElement is visible Actual result: the left border of the GridRowHeaderCellElement is missing Workaround: this.radGridView1.ViewCellFormatting +=new CellFormattingEventHandler(radGridView1_ViewCellFormatting); void radGridView1_ViewCellFormatting(object sender, CellFormattingEventArgs e) { if (e.CellElement is GridRowHeaderCellElement) { e.CellElement.BorderLeftWidth = 3; } }
ADD. RadGridView - add AutoSizeRows functionality in HtmlViewDefinition
“Missing data after apply Object-Relational filtering operation” as in the attached, also capture case simulation in video file to illustrate how the case happen to support your investigation. Scenario case: · Expand Parent Data 2 à will see child data level (child data 2.1.1, child data 2.1.2, child data 2.1.3) · Filter child data that contains value = input “2.1.4” (mismatch case filter)· Current Result : Not show all 3 child data and cannot get it back to display again In this case, normally how the component handle this “not found filtering result” case, is it normal to display result like this? If so please help recommend how we can get 3 child data back for doing any further process.
Improve RadGridView API by allowing user to set styles for all rows and columns through styles as Microsoft DataGridView. Expose the following properties: - ColumnHeadersDefaultCellStyle - RowHeadersDefaultCellStyle - RowsDefaultCellStyle - DefaultCellStyle
You should use the ticket project in order to reproduce the issue.
Currently developers can localize the names of the properties. They should be able to localize the descriptions as well.
Improve localization of invalid parameter messages and Item text in Conditional Formatting Form of RadGridView.
exception is thrown when the ListChanged event send ItemChanged notification before ItemAdded
If you change the RadGridView in design-time by property builder, the smart tag disappears after closing the builder.
A child row does not appear in the view by using following code snippet: GridViewRowInfo^ pNewRow = pTemplate->Rows->AddNew(); pNewRow->Cells["ChildNameColumn"]->Value = this->ChildTextBox->Text; int count = radGridView1->ChildRows->Count; pNewRow->Cells["ChildAddressColumn"]->Value = count.ToString() Workaround: add new rows in the following manner: private: System::Void button2_Click(System::Object^ sender, System::EventArgs^ e) { // add child row GridViewTemplate^ pTemplate = radGridView1->MasterTemplate->Templates[0]; GridViewRowInfo^ pNewRow = pTemplate->Rows->NewRow(); pNewRow->Cells["ChildNameColumn"]->Value = this->ChildTextBox->Text; int count = radGridView1->ChildRows->Count; pNewRow->Cells["ChildAddressColumn"]->Value = count.ToString(); pTemplate->Rows->Add(pNewRow); }
If you have your grid bound to a table with a single string column, changing the DataType of the resulted column in RadGridView to int, should change the way the column is sorted.
Implement "Tag" and "Name" properties into the GridViewColumnGroup.
1. Create a new project with RadGridView. 2. Bind it to a data source with two columns and make the first one read only. 3. Handle the CellValidating event and add a condition to validate the second column. 4. Run the project and enter invalid value in second column. 5. Now enter a correct value and press Tab key. You will be navigated to a wrong row.
If the Average aggregate is applied over a column which contains only integer data (for example over the ID column of a DataTable), the result will be calculated as an integer value which is not correct in most cases. To workaround the issue, add a custom evaluation of the average function on the GroupSummaryEvaluate event: void radGridView1_GroupSummaryEvaluate(object sender, GroupSummaryEvaluationEventArgs e) { if (e.SummaryItem.FieldName == "ID" && e.SummaryItem.Aggregate == GridAggregateFunction.Avg) { int count = 0; decimal sum = 0; foreach (GridViewRowInfo row in this.radGridView1.Rows) { count++; sum += (decimal)row.Cells["ID"].Value; } e.Value = count > 0 ? sum / count : 0; } }
If one exports a hierarchy and a hierarchy row does not have child rows, the header cells of the row's child view are still exported.
1. Create a new project with RadGridView. 2. Set AutoSizeRows to true and WrapText in one of the columns to true. 3. Set the ApplicationThemeName to Aqua. 4. Set EnableFiltering to true. 5. Run the application and filter by the first column, the filtering row resizes correctly. Now filter the column where WrapText is set to true. It will not resize correctly.
NullReferenceException is thrown, when the following steps are performed: 1. Scroll horizontally 2. Move a column by mouse drag and drop. 3. Start writing in the filter cell of the moved column 4. Suddenly the editor is closed. 5. When you try to write in the filter cell again, exception is thrown. Work around: void radGridView1_EditorRequired(object sender, Telerik.WinControls.UI.EditorRequiredEventArgs e) { if (e.EditorType == typeof(RadTextBoxEditor)) { e.Editor = new RadTextBoxEditor(); } }
Advanced Property Grid in Property Builder filter the data source list and not show 'Project Data Sources' for selection in the DataSource popup. There is a difference in the drop down Datasource selection between the : GridviewDataColumn Collection Editor and the... RadGridView Property Builder