I have a web application that is using your Kendo editor. The HTML output of the Kendo editor is saved in a database and can be opened in another WPF application to be edited in a RadRichTextBox. The HTML is imported as follows, where "editor" is a RadRichTextBox:
private void ImportHtml(string HTML){ HtmlFormatProvider _provider = new HtmlFormatProvider(); HtmlImportSettings settings = new HtmlImportSettings(); _provider.ImportSettings = settings; settings.UseDefaultStylesheetForFontProperties = true; editor.Document = _provider.Import(HTML);}
When tables are created in the Kendo editor and imported to the RadRichTextBox, several issues are seen:
Please let me know if there is anything I am missing here that will provide proper display of the tables in the RadRichTextBox.
Thanks!

Hi,
I'm working with the RadSyntaxEditor (WPF R3 2019) and loving it. It is a great control with lots of potential for our team.
The issue I have is simple and I feel silly having to ask something so trivial, but is there a way access the underlying text of the TextDocument? We need it to write to a stream and save the document after editing. I've tried looking in the TextDocument and TextSnapShot objects, iterating all the lines and spans, and calling all their ToString() methods, but nothing seemed to work. Is there a way to access the raw text from the rope, or even the rope itself?
Thank you ahead of time for your help,
Happy New Year.
Tim
Hi,
I am trying to drop shape into a container shape, but the shape is not displaying inside the container. Could anyone help me solve it? Here is my code.
EventManager.RegisterClassHandler(typeof(RadDiagramContainerShape), RadDiagramShape.DropEvent, new System.Windows.DragEventHandler(OnDrop));
private void OnDrop(object sender, System.Windows.DragEventArgs e) { e.Handled = true; if ((e.Data as DataObject)?.GetData(typeof(DragObject)) is DragObject dragObject) { var itemBase = (ActivityBase)Activator.CreateInstance(dragObject.ContentType); var p = e.GetPosition(MainDiagram); var shape= createDiagramShape(itemBase); RadDiagramContainerShape target = (sender as RadDiagramContainerShape); target.Items.Add(shape); } }private RadDiagramShape createDiagramShape(ActivityBase activity) { var shape = new RadDiagramShape { Content = activity, BorderThickness = new Thickness(1), UseGlidingConnector = true, HorizontalContentAlignment = HorizontalAlignment.Stretch, VerticalContentAlignment = VerticalAlignment.Stretch, DataContext = activity, UseDefaultConnectors = false, IsRotationEnabled = false, Background = new SolidColorBrush(Color.FromArgb(255, 255, 255, 255)), GlidingStyle = GlidingStyle.Rectangle }; var outconnector = new InOutConnector { Offset = new Point(1, 0.2), Direction = eDirection.drOut, Name = "out" + DateTime.Now.Millisecond }; shape.Connectors.Add(outconnector); var inconnector = new InOutConnector { Offset = new Point(0, 0.2), Direction = eDirection.drIn, Name = "in" + DateTime.Now.Millisecond, }; shape.Connectors.Add(inconnector); return shape; }
The following function to drop shape inside the diagram works.
private void OnDropShape(object sender, DragEventArgs e) { e.Handled = true; if ((e.Data as DataObject)?.GetData(typeof(DragObject)) is DragObject dragObject) { var itemBase = (ActivityBase) Activator.CreateInstance(dragObject.ContentType); var p = e.GetPosition(MainDiagram); var shape = createDiagramShape(itemBase); MainDiagram.AddShape(shape, MainDiagram.GetTransformedPoint(p)); _mainViewModel.ShapeCollection = MainDiagram.Shapes; _mainViewModel.SelectedActivity = calendar.DataContext as ActivityBase; } }
Thanks,
Rahul

If there is only one wizardpage in the WizardPages collection, the AllowFinish property is ignored completely and the Finish button is enabled even if set to false directly or using a binding.
Using the latest version of UI for WPF.

I tried looking at the WPF GridView example for server side paging/sorting/filtering and it failed with an error. However I looked at the code and you are simply using entity framework to do all the work.
Are there any examples where I can use a different ORM like Ormlite? We don't use entity framework and frankly don't want to.
The only other solution for us would be to switch to using something like Kendo because then it is much easier in the web.
Have a User Control that is called when a button "about" is pressed.
The UC works. Want to add a "Close" button that will close the window so it won't get orphaned later.
I could use the "IsVisible = Visibility.Collapsed;" which works but it is not really gone. The UC has to RadListboxes which collects different data in each box. When I use the "IsVisible = Visibility.Collapsed;" the box disappears. When click on the "About" button it reappears with previous data. I prefer to make it truly close/destroyed.
Is this possible and if so how? please.
What code do you need the XAML or the .CS?

hello
I am trying to implement a Grid View with row number column and pagination.That is, the row number can also be changed when the page is changed
but the code I wrote is that the row number column on each page is only 1 to 10. And by going to the next page the row number starts again from 1 and does not increase to 11 and more.
this is my cs code for row number:
public override FrameworkElement CreateCellElement(Telerik.Windows.Controls.GridView.GridViewCell cell, object dataItem)
{
TextBlock textBlock = cell.Content as TextBlock;
if (textBlock == null)
{
textBlock = new TextBlock();
}
textBlock.Text = string.Format("{0}", this.DataControl.Items.IndexOf(dataItem) + 1);
return textBlock;
}
and xaml code:
<telerik:RadDataPager DisplayMode="all" PageSize="10" Source="{Binding Items, ElementName=RadGridView}" />
also i need a label that represents the total number of Grid View rows. The value of this label must be updated by applying a filter or searching.
but my code always represents total number of Grid View rows and does not change with filtering.
Thanks!
Sara.
Have a RadListbox, in xaml have set (SelectionMode="Multiple").
Want the user able to copy a selected item(s) and paste it anywhere (text file, excel, etc.) having issue finding topics in forum that helps me complete the operation of "copy".
Is there a method to do this?
