
private void AddImage(RadGridView TheGrid, MemoryStream mStream) { Image TheImage = System.Drawing.Image.FromStream(mStream); GridViewImageColumn ImageColumn = new GridViewImageColumn(); ImageColumn.ImageLayout = ImageLayout.Stretch; ImageColumn.Width = 1095; ImageColumn.IsVisible = true; radGridView1.MasterGridViewTemplate.Columns.Add(ImageColumn); radGridView1.MasterGridViewTemplate.Rows.Add(TheImage); radGridView1.Refresh(); } radGridView1.MasterGridViewTemplate.Columns.Add(Chart); radGridView1.MasterGridViewTemplate.Rows.Add(ChartImage.Image); radGridView1.Refresh(); } private void radGridView1_Click(object sender, EventArgs e) { if (this.radGridView1.Rows.Count != 0) { ExportToPDF exporter = new ExportToPDF(this.radGridView1); exporter.FileExtension = "pdf"; exporter.ExportVisualSettings = true; exporter.PageTitle = "Chart"; exporter.FitToPageWidth = true; exporter.PdfExportSettings.EnableCopy = true; exporter.SummariesExportOption = SummariesOption.ExportAll; string fileName = "C:\\ExportedData.pdf"; exporter.RunExport(fileName); }
I might just be missing a very simple property here... the rows appear fine as soon as the application is run, but as soon as you click on a row, the value is rounded to two decimal places. Here's my code:
private void RadForm1_Load(object sender, EventArgs e){ RadPropertyStore PropertyStore = new RadPropertyStore(); radPropertyGrid1.SelectedObject = PropertyStore; PropertyStore.Add(new PropertyStoreItem(typeof(double), "test", 184.9484)); PropertyStore.Add(new PropertyStoreItem(typeof(double), "test2", 341651.7823));}I tried to force the decimal places to remain the same using this, but it did not work:
private void radPropertyGrid1_EditorInitialized(object sender, PropertyGridItemEditorInitializedEventArgs e){ PropertyGridTableElement te = sender as PropertyGridTableElement; PropertyGridSpinEditor editor = e.Editor as PropertyGridSpinEditor; if (editor != null && te != null) { ((BaseSpinEditorElement)editor.EditorElement).DecimalPlaces = 5; }}How can I prevent my values from being rounded?
Thanks!
var doc = new RadPrintDocument();doc.HeaderHeight = 20;doc.FooterHeight = 18;doc.HeaderFont = new Font("Arial", 10, FontStyle.Bold);doc.FooterFont = new Font("Arial", 8, FontStyle.Regular);doc.LeftHeader = "Test Header";doc.Logo = System.Drawing.Image.FromFile(@"Z:\Home\Kurt\Y&M Logos\ymlogo_63x18.png");doc.LeftFooter = "[Logo]";doc.Landscape = true;doc.AssociatedObject = radGridView1;doc.Print();

Hello,
I want to make use of the AutoCompleteBox so the user has a nice autocomplete feature, without him being able to input other values then the ones in the autocomplete items. I've been looking for this some time now, but it seems like in WPF and Web it's the SelectionMode property. But in my Winform project, there is no such a property.
Can you tell me if this is possible and if so, how (which winform property i need to set). I'm using latest .net, latest telerik updates etc. Control is RadAutoCompleteBox.
Thanks a lot!
best regards,
Francois


Hi there,
There seems to be a bug with the PivotGrid when using the Export to Excel function.
Using the Demo Application for WinForms, you can just open the PivotGrid - Export to Excel example and then export one.
After that, minimize the Demo Application to task bar, and maximize it back. Some of the rows will be missing. If you keep minimizing and maximing, the rows that are disappearing will keep changing.
I'm not sure if this bug is just on my machine or if there's anything that that needs to be installed.
Thanks!
