NullReferenceException thrown on opening the CompletionListWindow when RadSyntaxEditor is hosted in a non-WPF application (usually WinForms) and there are no WPF Application and MainWindow initialized.
This can happen if the RadSyntaxEditor for WPF is hosted in a WinForms application. In this scenario the System.Windows.Application.Current and its MainWindow are not initialized, which is what the IntelliPrompt positioning logic relies on.
Exception details:
System.NullReferenceException: 'Object reference not set to an instance of an object.'
> Telerik.Windows.Controls.SyntaxEditor.dll!Telerik.Windows.Controls.SyntaxEditor.UI.IntelliPromptBase.SetPosition(System.Windows.Point pointInScreen) Line 452 C# Telerik.Windows.Controls.SyntaxEditor.dll!Telerik.Windows.Controls.SyntaxEditor.UI.IntelliPromptBase.SetPosition(System.Windows.Point pointInEditorPresenter, System.Windows.Point pointAboveTheCaret) Line 442 C# Telerik.Windows.Controls.SyntaxEditor.dll!Telerik.Windows.Controls.SyntaxEditor.UI.IntelliPromptBase.SetPositionInView() Line 480 C# Telerik.Windows.Controls.SyntaxEditor.dll!Telerik.Windows.Controls.SyntaxEditor.UI.IntelliPromptBase.InitializeIntellisense() Line 401 C# Telerik.Windows.Controls.SyntaxEditor.dll!Telerik.Windows.Controls.SyntaxEditor.UI.IntelliPromptBase.Show(Telerik.Windows.Controls.SyntaxEditor.UI.CaretPosition caretStartPosition, Telerik.Windows.Controls.SyntaxEditor.UI.CaretPosition caretEndPositions) Line 211 C#
Telerik.Windows.Controls.SyntaxEditor.dll!Telerik.Windows.Controls.SyntaxEditor.UI.IntelliPromptBase.Show() Line 182 C#
To work this around, you can initialize a new WPF application and MainWindow and create a hidden HwndSource for the MainWindow. This should happen before showing the WPF content in the WinForms application's code.
public Form1()
{
InitializeComponent();
new System.Windows.Application();
System.Windows.Application.Current.MainWindow = new System.Windows.Window();
var parameters = new HwndSourceParameters("HiddenHost")
{
Width = 1, Height = 1,
WindowStyle = unchecked((int)0x80000000) // WS_POPUP | WS_EX_NOACTIVATE
};
var hwndSource = new HwndSource(parameters);
hwndSource.RootVisual = System.Windows.Application.Current.MainWindow;
// other code here
ElementHost host = new ElementHost { Dock = DockStyle.Fill };
host.Child = wpfControl
this.Controls.Add(host);
}
Document exported to DOCX with 2025 Q2 cannot be opened by 2025 Q1 or previous versions.
Workaround: Use document processing to fix the document.
var processing_provider = new Telerik.Windows.Documents.Flow.FormatProviders.Docx.DocxFormatProvider();
var document = processing_provider.Import(File.ReadAllBytes("C:\\Users\\test\\Downloads\\word1.docx"),null);
var bytes_ = processing_provider.Export(document, null);
var rtb_provider = new Telerik.Windows.Documents.FormatProviders.OpenXml.Docx.DocxFormatProvider();
var doc = rtb_provider.Import(bytes_);
radRichTextBox.Document = doc;
Pressing the Enter key when a field editor is focused will scroll the vertical scrollbar to the topmost offset. This is reproducible when the properties are grouped. Also, the RenderMode should be set to Flat.
To work this around, change the RenderMode setting to Hierarchical right before the Enter key logic is executed and then return it back to Flat after some time.
private void RadPropertyGrid_PreviewKeyDown(object sender, System.Windows.Input.KeyEventArgs e)
{
var propertyGrid = (RadPropertyGrid)sender;
var currentMode = propertyGrid1.RenderMode;
propertyGrid.RenderMode = RenderMode.Hierarchical;
Dispatcher.BeginInvoke(new Action(() =>
{
propertyGrid.RenderMode = currentMode;
}));
}
Hi Team,
I have set up SSO and it's great so far. I have a feature request that would make it even better, and solve many large enterprise needs, is to have a way to integrate SCIM based license provisioning as well.
Right now, you still do need to manage licensed users on the Manage Licensed Users portal. A License Holder or License Manager needs to add a Developer to the account and assign them a license.
With SCIM integration, we could better manage the users and licensing on a larger scale, with automation and oversight on the enterprise-managed SSO identity.
Thank you,
Kevin
I do have some feedback on this component. I love it, but of course there are some areas where improvement can be made. For instance, in the screenshot below, I have highlighted some words where improvement can be made.
Currently, the drop down of RadComboBox contains only the RadComboBoxItems and the Clear Selection button. Add new content presenter that allows you to include extra visuals, like buttons or text.
The feature is similar to the AdditionalContent of RadTabControl.
TypeAccessException occurs in .NET Framework projects when using internal class for the data point models. The error doesn't occur in .NET 8 projects.
dsa
System.TypeAccessException: 'Attempt by method 'DynamicClass.Telerik_DynamicGetter_Argument(System.Object)' to access type 'WpfApp29.ChartPoint' failed.' at Telerik.Windows.Controls.Chart.dll!Telerik.Windows.Controls.ChartView.PropertyNameDataPointBinding.GetValue(object instance) Telerik.Windows.Controls.Chart.dll!Telerik.Windows.Controls.ChartView.ScatterSeriesDataSource.InitializeBinding(Telerik.Windows.Controls.ChartView.DataPointBindingEntry binding) Telerik.Windows.Controls.Chart.dll!Telerik.Windows.Controls.ChartView.ChartSeriesDataSource.GenerateDataPoint(object dataItem, int index) Telerik.Windows.Controls.Chart.dll!Telerik.Windows.Controls.ChartView.ChartSeriesDataSource.BindCore(System.Collections.IEnumerable source)
Telerik.Windows.Controls.Chart.dll!Telerik.Windows.Controls.ChartView.ChartSeriesDataSource.Bind(System.Collections.IEnumerable itemSource)
Telerik.Windows.Controls.Chart.dll!Telerik.Windows.Controls.ChartView.ChartSeriesDataSource.Rebind(System.Collections.IEnumerable oldSource, System.Collections.IEnumerable newSource, bool shouldUpdateSelectedPoints) Telerik.Windows.Controls.Chart.dll!Telerik.Windows.Controls.ChartView.ChartSeriesDataSource.ItemsSource.set(System.Collections.IEnumerable value) Telerik.Windows.Controls.Chart.dll!Telerik.Windows.Controls.ChartView.ChartSeries.InitDataBinding() Line Telerik.Windows.Controls.Chart.dll!Telerik.Windows.Controls.ChartView.ScatterPointSeries.InitDataBinding() Telerik.Windows.Controls.Chart.dll!Telerik.Windows.Controls.ChartView.ChartSeries.OnApplyTemplate() Telerik.Windows.Controls.Chart.dll!Telerik.Windows.Controls.ChartView.PointTemplateSeries.OnApplyTemplate()
To work this around, upgrade the target framework of the project to .NET 8. Or use the GenericDataPointBinding class for the binding properties of the series (XValueBinding, YValueBinding, etc.), instead of the default PropertyNameDataPointBinding.
The selection a RadComboBox hosted in RadDataForm gets cleared on commit changes. This happens when the RadComboBox is added in the EditTemplate and its IsEditable is set to True. Committing the edit clears the TextBox of the ComboBox, which clears the selection.
To work this around, subscribe to the EditEnding event of RadDataForm and clear the DataContext of the RadComboBox element.
private void RadDataForm_EditEnding(object sender, Telerik.Windows.Controls.Data.DataForm.EditEndingEventArgs e)
{
var dataForm = (RadDataForm)sender;
var myField = dataForm.ChildrenOfType<DataFormDataField>().FirstOrDefault(df => df.Name == "myField");
if (myField != null)
{
var comboBox = (RadComboBox)myField.Content;
comboBox.DataContext = null;
}
}