When I try to generate a PNG file Exporting RadPieChart it crash without any message. The files is generate with 0KB size. I don't need the graph in the screen I just need to export the PNG to programatically insert it in a RichTexBox.
Telerik.Windows.Controls.RadPieChart gr1 = new Telerik.Windows.Controls.RadPieChart();
gr1.Series.Add(new Telerik.Windows.Controls.ChartView.PieSeries());
foreach (KeyValuePair<string, int> g in dt1)
{
Telerik.Charting.PieDataPoint pA = new Telerik.Charting.PieDataPoint();
pA.Label = g.Key;
pA.Value = g.Value;
gr1.Series[0].DataPoints.Add(pA);
}
string filename1 = Path.GetTempFileName();
using (Stream fileStream = File.Open(filename1, FileMode.OpenOrCreate))
{ Telerik.Windows.Media.Imaging.ExportExtensions.ExportToImage(gr1, fileStream, new PngBitmapEncoder()); }
Any Advice will be welcome. Thanks in advance.
Hi,
Is there a way to resolve this type of issue? The data are homogeneous.
Thanks and regards,
I am using data table for populating data through Radgridview control instead of direct collection and facing some issue with this control which is not able to get all the cell value from this control. In my project is using through code behind.
Current Telerik version : v4. 0. 30319
Thanks & Regards
Murugansilvers
We use long time RadGridView with ItemsSource as System.Data.DataTable.DefaultView
In newest update 2021.2.615 column names with Case sensitive difference (orig. [reg_dat]) make Binding error
<telerik:GridViewDataColumn Header="Reg.date" DataMemberBinding="{Binding [Reg_dat]}" />
Cannot obtain IDataErrorInfo.Error[[Reg_dat]] from source of type System.Data.DataRowView - System.ArgumentException 'Column '[Reg_dat]' does not belong to table .' BindingExpression:Path=[Reg_dat]; DataItem='DataRowView' (HashCode=51788984); target element is 'GridViewCell' (Name=''); target property is 'ValueChangedListener' (type 'Object')
It is Telerik mistake?

Hi,
I want to set to one RadGridView's vertical scrollbar normal mode.
Something like that but targeting to only one scrollbar.
FluentPalette.Palette.ScrollBarsMode = Telerik.Windows.Controls.Theming.ScrollViewerScrollBarsMode.Normal;
How can I achieve that? Is that possible?
Regards!
I am receiving following error when opening specific pdf document.
I followed article Value cannot be null. Parameter name - Pages But this article belongs to parameter 'pages' instead 'page'
System.ArgumentNullException: Value cannot be null. (Parameter 'page')
at Telerik.Windows.Documents.Utilities.Guard.ThrowExceptionIfNull[T](T param, String paramName)
at Telerik.Windows.Documents.Fixed.Text.TextPosition..ctor(TextPage page, Int32 index)
at Telerik.Windows.Documents.Fixed.Text.TextPosition..ctor(TextPage page)
at Telerik.Windows.Documents.Fixed.Text.TextPosition..ctor(TextDocument document)
at Telerik.Windows.Documents.Fixed.Model.RadFixedDocument.get_CaretPosition()
at Telerik.Windows.Documents.UI.FixedDocumentPresenterBase.AttachToDocumentEvents(RadFixedDocument document)
at Telerik.Windows.Documents.UI.FixedDocumentPresenterBase.DoOnDocumentChanged(RadFixedDocument oldDocument, RadFixedDocument newDocument)
at Telerik.Windows.Controls.FixedDocumentViewerBase.OnDocumentChanged(RadFixedDocument oldValue, RadFixedDocument newValue)
at Telerik.Windows.Controls.FixedDocumentViewerBase.<>c.<.cctor>b__14_1(DependencyObject s, DependencyPropertyChangedEventArgs e)
at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
at Telerik.Windows.Controls.FixedDocumentViewerBase.set_Document(RadFixedDocument value)
at Telerik.Windows.Controls.FixedDocumentViewerBase.<>c__DisplayClass90_0.<DocumentSource_Loaded>b__0()
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
Following Pdf document specs might help you
3
0 obj
[/CalRGB<</Gamma[2.2000000476837158 2.2000000476837158 2.2000000476837158]/Matrix[0.4124000072479248 0.2125999927520752 0.019300000742077827 0.35760000348091125 0.71520000696182251 0.11919999867677689 0.18050000071525574 0.072200000286102295 0.9505000114440918]/WhitePoint[0.9505000114440918 1. 1.0889999866485596]>>]
endobj
6
0 obj
<</ProcSet[/PDF/Text/ImageB/ImageC/ImageI]/XObject<</Img1 5 0 R>>>>
endobj
7
0 obj
<</Type/Page/Contents 4 0 R/MediaBox[0 0 595 842]/Resources 6 0 R/Parent 1 0 R>>
endobj
1 0 obj
<</Type/Pages/Count 1/Kids[7 0 R]>>
endobj
2 0 obj
<</Type/Catalog/Pages 1 0 R>>
endobj
xref
0 9
0000000000 65535 f
0000063589 00000 n
0000063641 00000 n
0000000016 00000 n
0000000350 00000 n
0000000430 00000 n
0000063406 00000 n
0000063490 00000 n
0000063687 00000 n
trailer
<</Size 8/Root 2 0 R/Info 8 0 R/ID [<cf5c0accdc040b8a5fd298a765972d13><aab7ac8c45a677c67feb6c1e858ec7c9>]>>
startxref
63899
%%EOF

Hi, I am trying to create simple HTML editor that will let user create html content limited to few options and the requirement here is to produce html with only <p> <u> <em> <strong> <font color="#XXXXXX"> without any spans, class or any other inline styles. I know how to limit it from UI so user can only use a few button to bold text, underscore, etc but I don't know how to get rig of these spans and other elements in export html.
Attached picture shows exported html when in RadRichTextBox I only added two texts, one is bold, second is italic.
I would like to have exported html like this: <p><strong>test</strong></p><p><i>test</i></p>
Any ideas?

I have a WPF view that contains both watermark text boxes and multicolumn combo boxes. I would like to set their properties in the resources of the view. I am having an issue where the settings of the watermarktextbox are affecting the appearance of the multicolumncombobox. Below is my code for the settings (This is under the resources of the view)
<Style TargetType="{x:Type telerik:RadWatermarkTextBox}">
<Setter Property="Padding" Value="3" />
<Setter Property="VerticalContentAlignment" Value="Center" />
<Setter Property="telerik:StyleManager.Theme" Value="Office2019" />
<Setter Property="Height" Value="25" />
<Setter Property="Margin" Value="5 5 5 0" />
</Style>
<Style TargetType="{x:Type telerik:RadMultiColumnComboBox}">
<Setter Property="Height" Value="25" />
<Setter Property="Margin" Value="5,5,5,0"/>
<Setter Property="telerik:StyleManager.Theme" Value="Office2019" />
</Style>Below is a screenshot of the of the view - notice the drop down icon of the combobox is off it has the downarrow on the right but then also up and down arrows to the left of the drop down arrow - i think its a scroll bar
I can fix this in a couple ways but neither are ideal:
1) I can set the height of the multi column combobox to 31 to get rid of those scroll bars. However, I would like all of my controls to be 25
2) I can remove the Height and Margin setters from the watermarktextbox but then I would have to go through and add those properties to each individual watermark textbox in my view
is there a setter property I can add to either the resources that would cancel out the values from the watermarktextbox or is there a way to cancel them out via a setting on each individual multicolumncombobox??
Thank you!

Hello.
I read this article.
https://www.telerik.com/forums/radcartesianchart-synchronize-scrolling
If I set to XAML, It's works.
But, I want to know how to set code behind Binding property. (Because, chart is making dynamic numbers)
I try to like below. But It doesn't work.
Please check and help me.
RadCartesianChart chart = new RadCartesianChart();
RadCartesianChart chart1 = new RadCartesianChart();
chart.Name = "chart";
Binding bds = new Binding();
Thanks.
The Week is started at the start of the month but not ended at end of the month.
Is it possible to do it?
Code :
<telerik:RadGanttView x:Name="ganttView" TasksSource="{Binding Tasks}" VisibleRange="{Binding VisibleRange}">