Clearing and refreshing the rows in a data table bound to a RadComboBoxColumn causes problems in the RadGridView. The column's drop-down stops working and in some cases the entire grid has become unresponsive.
Steps to reproduce: 1. Add a grid to a form and make it read only 2. Add a masked box column and set the mask 3. Add some data and run the project You will see that the mask is not applied to the values in the mask box column Comment: This is not an issue. The mask is applied after editing the text with RadMaskedEditBox, in read-only mode there is no masked editor created. You should use the conversion layer in RadGridView to solve the issue. Check the GridView >> Manipulated Data >> Convert Values example from our demo application.
1. Create a new project and open a form at design mode. 2. Drop RadGridView component on the form. 3. Bind it to some data source. 4. Open the property builder. 5. Select a column and change its name property. You will see that the column name remains the same in the columns list located at left.
I am executing the following code. Utilizing the debugger I know the code is only implemented once, and it works correctly at first but then at seemingly random intervals multiple rows will expand. I used modified code as well to first collapse all rows and then expand only the one with the matching ID field, but I get the same results.
A developer should be able to remove certain fields from there, so his end-users cannot use them to build their expressions.
To reproduce: void radGridView1_CurrentRowChanged(object sender, Telerik.WinControls.UI.CurrentRowChangedEventArgs e) { e.CurrentRow.Cells[2].ColumnInfo.IsCurrent = true; }
The RadExpressionEditorForm should not show the invisible columns in its fields section.
Allow setting the height of the group panel in design time: - by setting its height property - by using mouse cursor via property builder
- Allow easy replacement of Conditional Formatting form - Localization of the form does not cover the Sort Alphabetically check box - Allow formatting of the items in columns drop down in Conditional Formatting Form
IMPROVE. RadExpressionEditorForm - one should be able to access the form and its controls in order to customize their appearance
Allow RadGridVIew Exports to perform independently in BackgroundWorker without suspending UI thread of RadGridView.
If you refresh an object set property of entity context, the RadGridView is not updated. The sample code below does not work: this.radGridView1.DataSource = entities.Countries; int maxId = (from c in entities.Countries orderby c.Id descending select c.Id).First(); Country country = new Country(); country.Id = maxId + 1; country.Name = Path.GetRandomFileName(); entities.Countries.AddObject(country); entities.SaveChanges(System.Data.Objects.SaveOptions.AcceptAllChangesAfterSave); entities.Refresh(System.Data.Objects.RefreshMode.StoreWins, entities.Countries);
When RadGridView performs exporting to excel, the values that have white-spaces at the beginning or at the end are trimmed.
Self-referencing hierarchy does not work, when ColumGroupsViewDefinition is applied.
FIX. RadGridView - the TextAlignment property of GridViewHyperlinkColumn is not taken into consideration Reproduce: - add RadGridView private void Form1_Load(object sender, EventArgs e) { // TODO: This line of code loads data into the 'nwindDataSet.Customers' table. You can move, or remove it, as needed. this.customersTableAdapter.Fill(this.nwindDataSet.Customers); DataColumn colContactName = nwindDataSet.Customers.Columns["ContactName"]; DataColumn colAddress = nwindDataSet.Customers.Columns["Address"]; this.radGridView1.Columns.Add(colContactName.ColumnName); this.radGridView1.Columns.Add(colAddress.ColumnName); this.radGridView1.Columns.Add(new GridViewHyperlinkColumn(colAddress.ColumnName + " Link")); this.radGridView1.Columns["Address"].TextAlignment = ContentAlignment.MiddleRight; this.radGridView1.Columns["Address Link"].TextAlignment = ContentAlignment.MiddleRight;// Different alignment between the two columns foreach (DataRow row in nwindDataSet.Customers.Rows) { this.radGridView1.Rows.Add(row.ItemArray[2], row.ItemArray[4], row.ItemArray[4]); } } Workaround: private void radGridView1_CellFormatting(object sender, CellFormattingEventArgs e) { GridHyperlinkCellElement cell = e.CellElement as GridHyperlinkCellElement; if (cell != null) { cell.ContentElement.TextAlignment = ContentAlignment.MiddleRight; } }
1. Create a new project with RadGridView and setup hierarchy. 2. Run the project. 3. Select the "add new row" and click Escape key to leave edit mode. 4. Press Tab several times. You will see that the current cell is indistinguishable.
WORKAROUND: The format of the file that ExportToExcelML creates is ExcelML which is an extended XML. If you do not want to receive the message, you have to change the extension of the file to ".xml". Even though the file will have an xml extension, it will still be associated with MS Excel and will be opened by Excel.There is a possibility to turn this warning message off on the client machine. You can read more about that on the following blog post - Excel 2007 Extension Warning On Opening Excel Workbook from a Web Site (http://blogs.msdn.com/b/vsofficedeveloper/archive/2008/03/11/excel-2007-extension-warning.aspx) Another workaround is to use Interop to open the file and excel and save it in XLSX format. However, this would require Administrator or Power User (http://msdn.microsoft.com/en-us/library/ms173186%28v=vs.80%29.aspx). A reference from COM to the corresponding office version should be added. Here is the code for saving: ExportToExcelML exporter = new ExportToExcelML(this.radGridView1); exporter.ExportVisualSettings = true; string tempPath = Path.GetTempPath(); tempPath += "tempgrid.xls"; exporter.RunExport(tempPath); Microsoft.Office.Interop.Excel.Application app = new Microsoft.Office.Interop.Excel.Application(); if (app == null) { Console.WriteLine("EXCEL could not be started. Check that your office installation and project references are correct."); return; } app.Visible = false; app.Interactive = false; Microsoft.Office.Interop.Excel.Workbook wb = app.Workbooks.Open(tempPath); string desktopPath = Environment.GetFolderPath(Environment.SpecialFolder.Desktop); desktopPath += "\\grid.xlsx"; wb.SaveAs(desktopPath, Microsoft.Office.Interop.Excel.XlFileFormat.xlWorkbookDefault); wb.Close(); app.Quit(); Marshal.ReleaseComObject(wb); Marshal.ReleaseComObject(app); File.Delete(tempPath);
When RadGridView is displaying a self-referencing it should be able to show the data with ColumnGroupsViewDefinition and HtmlViewDefinition.
When UseCompatibleTextRendering property is set to false, the data cells overlaps the row header cells when horizontal scrolling is performed.
Steps to reproduce: 1. Place a grid on a form and add several columns. 2. Set a ColumnGroupsViewDefinition to the grid and resize the columns so the horizontal scroll bar appears. 3. Add a button and on its click call the PrintPreview method of the grid. You will see that the horizontal scroll bar of the grid will disappear. Workaround:workaround it by increasing and decreasing the width of a single column with 1 pixel right after you call the Print method of the print document. document.Print() grid.Columns(0).Width += 1 grid.Columns(0).Width -= 1