Telerik Forums
UI for WinForms Forum
1 answer
24 views

I am attempting to add a RadSyntaxEditorElement to Telerik Chat UI for Winforms using 2023.3.1010 Trial.

I receive a null reference exception in RadSyntaxEditorElement.cs > SyncZoomComboText line 1312. It says base.Dispatcher = null. (see attached image).

 

Is it possible to add the SyntaxEditorElement to chat?  If, not do you have any other recommendations for display code in chat?

 

Here is my test code modified from the examples found on your site.

        public class MyCodeMessageItemElement : TextMessageItemElement
        {
            protected override Type ThemeEffectiveType
            {
                get
                {
                    return typeof(TextMessageItemElement);
                }
            }

            protected override LightVisualElement CreateMainMessageElement()
            {
                return new CustomCodeMessageBubbleElement();
            }

            public override void Synchronize()
            {
                base.Synchronize();
                CustomCodeMessageBubbleElement bubble = this.MainMessageElement as CustomCodeMessageBubbleElement;
                bubble.DrawText = false;
            }
        }



        public class CustomCodeMessageBubbleElement : ChatMessageBubbleElement
        {
            protected override Type ThemeEffectiveType
            {
                get
                {
                    return typeof(ChatMessageBubbleElement);
                }
            }

            //RadTextBoxControlElement textBoxElement;
            RadSyntaxEditor radSyntaxEditor;
            RadSyntaxEditorElement radSyntaxEditorElement;

            public RadSyntaxEditor SyntaxEditor1
            {
                get
                {
                    return this.radSyntaxEditor;
                }
            }

            protected override void CreateChildElements()
            {
                base.CreateChildElements();
                radSyntaxEditorElement = new RadSyntaxEditorElement();
                radSyntaxEditorElement.ZoomComboBox.Enabled = false;
                //radSyntaxEditor.ContextMenuOpening += textBoxElement_ContextMenuOpening;
                this.Children.Add(radSyntaxEditorElement);
            }

            //private void textBoxElement_ContextMenuOpening(object sender, TreeBoxContextMenuOpeningEventArgs e)
            //{
            //    foreach (RadItem item in e.ContextMenu.Items)
            //    {
            //        if (item.Text.Contains("&Copy"))
            //        {
            //            item.Visibility = ElementVisibility.Visible;
            //        }
            //        else
            //        {
            //            item.Visibility = ElementVisibility.Collapsed;
            //        }
            //    }
            //}

            public override string Text
            {
                get
                {
                    return base.Text;
                }
                set
                {
                    base.Text = value;
                    this.radSyntaxEditor.Text = value;
                }
            }
        }

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 20 Oct 2023
1 answer
33 views

Hi, new to telerik, we're evaluating rad chat for an internal chat piece to our app.

i'm looking for recommendations for what control to pair with the radchat control for the left side of the chat program. the one where you pick who you're talking to currently.  think any old messenger app, conversations on the left, and the main chat with a person on the right.

what would you guys use for that?  I only need it to show the person's name, the person that's selected and something like a dot or overlay showing conversations you haven't seen yet.  Like XYZ sent you a chat and you haven't looked at it yet so XYZ's entry shows a dot etc for a missed chat.

this is all winforms.

Thanks!

Dinko | Tech Support Engineer
Telerik team
 answered on 18 Oct 2023
1 answer
52 views

Hi, i'm evaluating radchat for winforms for a messenger project i have to do.  

does it natively support multiple authors that are separate from each other?  Think a typical messenger like face book messenger etc.  you have a list of people you're talking to on the left and the current person you're talking to on the right.  

does rad chat support that natively?  if not are there any samples or how too's that show this?

i'd like it to know when a different author is posted to the control and put it in the correct person on the left and light up etc showing it's got a new message.

i've tried adding multiple authors to it with different messages but it just puts them all in the same window with different names above them.

i really need them to be separated out into their own conversations.

Thanks!

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 28 Aug 2023
1 answer
186 views

hello

I need to create whatsapp ui that can send files and voice notes to other client

As there any way to do it with chat ui ??

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 05 Aug 2021
3 answers
31 views

Hello,

I am trying to figure out how to make the Suggested Actions not scroll off of the screen in Windows forms.

 

Can you help show how I can get these to be posted vertical?

Thanks -Tim

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 18 Jan 2021
2 answers
58 views

How to line up english message in chat bubble

Hello, ChatBubble has problem.

ex)

(e.ItemElement as TextMessageItemElement).MainMessageElement.TextAlignment = ContentAlignment.MiddleLeft;
(e.ItemElement as TextMessageItemElement).MainMessageElement.UseCompatibleTextRendering = false;

When UseCompatibleTextRendering's value is false, english Line spacing fails.

But another language line spacing successes.

So, How to line spacing english? I want to solve it.

Thanks.

Nadya | Tech Support Engineer
Telerik team
 answered on 25 Nov 2020
3 answers
231 views

in c# winforms 

Conversational UI, Chat, i can't add user to chatting with them ?

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 07 Apr 2020
1 answer
142 views

hello i'm using radchat on my project and i have two questions

one

I've read how to sending a image but i'm not sure how i can send other files like Audio,video...

 

ChatMediaMessage mediaMessage = new ChatMediaMessage(img, new Size(300, 200), null, Chat_Box.Author, DateTime.Now);

 

two

and also are some of them like video types going to have a preview in the radchat like the image or not

if not how i can access the file that radchat is showing to execute it example like this Process.Start("C:\\");

thank you 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 27 Jan 2020
5 answers
198 views

Hello, how can I choose a text message and copy it. The attribute CanFocus = True but I cannot select the text message.

Please let me know how to solve my problem. Tks

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 08 Jan 2020
2 answers
144 views

Regarding my last post about Bot Framework 4.0.  What I am really try to do is get Adaptive Cards JSON to show as a card in the chat viewer it doesn't  need to be through the Bot Framework.  

Thanks -Tim

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 04 Oct 2019
Narrow your results
Selected tags
Tags
GridView
General Discussions
Scheduler and Reminder
Treeview
Dock
RibbonBar
Themes and Visual Style Builder
ChartView
Calendar, DateTimePicker, TimePicker and Clock
Buttons, RadioButton, CheckBox, etc
DropDownList
ComboBox and ListBox (obsolete as of Q2 2010)
ListView
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
Menu
RichTextEditor
PropertyGrid
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
Tabstrip (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
GanttView
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
VirtualGrid
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
Rotator
TrackBar
MessageBox
CheckedDropDownList
SpinEditor
StatusStrip
CheckedListBox
Wizard
ShapedForm
SyntaxEditor
TextBoxControl
LayoutControl
CollapsiblePanel
DateTimePicker
CAB Enabling Kit
TabbedForm
DataEntry
GroupBox
ScrollablePanel
WaitingBar
ImageEditor
ScrollBar
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Barcode
Styling
ColorBox
PictureBox
Callout
VirtualKeyboard
FilterView
Accessibility
DataLayout
NavigationView
ToastNotificationManager
CalculatorDropDown
Localization
TimePicker
ValidationProvider
FontDropDownList
Licensing
BreadCrumb
ButtonTextBox
LocalizationProvider
Dictionary
Overlay
Security
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
Rating
TimeSpanPicker
BarcodeView
Calculator
OfficeNavigationBar
Flyout
TaskbarButton
HeatMap
SlideView
PipsPager
+? more
Top users last month
horváth
Top achievements
Rank 2
Iron
Iron
Steve
Top achievements
Rank 2
Iron
Erkki
Top achievements
Rank 1
Iron
Mark
Top achievements
Rank 2
Iron
Iron
Veteran
Jakub
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
horváth
Top achievements
Rank 2
Iron
Iron
Steve
Top achievements
Rank 2
Iron
Erkki
Top achievements
Rank 1
Iron
Mark
Top achievements
Rank 2
Iron
Iron
Veteran
Jakub
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?