This is a migrated thread and some comments may be shown as answers.

Binding GridViewDataColumn with RichTextBox

1 Answer 70 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Ashrul
Top achievements
Rank 1
Ashrul asked on 23 May 2018, 03:07 AM

Hi, Actually i want to bind the content of GridViewDataColum with RichtextBox, so when user typing in RichTextBox (New Line) and it will automatically add item in GridViewDataColumn anf ofcourse it is ObservableCollection, i have no idea to make it realized. 

please help me.

 

 

thanks,

 

1 Answer, 1 is accepted

Sort by
0
Boby
Telerik team
answered on 25 May 2018, 02:39 PM
Hello Ashrul,

MVVM approach is not provided for this scenario. You can subscribe to RadRichTextBox.DocumentContentChanged event and access the paragraphs in the document model on each change, updating the data source of the grid as needed.

Regards,
Boby
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
RichTextBox
Asked by
Ashrul
Top achievements
Rank 1
Answers by
Boby
Telerik team
Share this question
or