Telerik Forums
UI for WinForms Forum
1 answer
253 views

How to use multiple lines when editing cells?

https://www.telerik.com/forums/auto-row-height-with-multiline-cell

Although I refer to the above page, cells with multiple lines work normally, but cells with only one line do not display text in Edit-Mode.

 

        private void gridTextData__CellEditorInitialized(object sender, VirtualGridCellEditorInitializedEventArgs e)
        {
            var textediter = e.ActiveEditor as VirtualGridTextBoxEditor;
            if (textediter != null)
            {
                textediter.Multiline = true;
            }

        }

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 09 Aug 2021
1 answer
176 views

Hello,

I'd like to localize the RichTextEditorRibbonBar. I've found an useful link with a sample xml file which helped me to localize some parts. But it seems it doesn't contain all the controls of the RichTextEditorRibbonBar. For example - I wasn't able to localize the Simplified Layout:

There is no occurrence of a word Simplified in the xml file.

How should I localize this?

Thanks

Tomáš

Nadya | Tech Support Engineer
Telerik team
 answered on 06 Aug 2021
1 answer
108 views

I want to prompt the user some messages if the values of PropertiGrid changed  when they close the RadForm. 

 

How do I do that? Thanks!

Nadya | Tech Support Engineer
Telerik team
 answered on 06 Aug 2021
1 answer
479 views
I don't know how to get data from each column in RadListView. How to get data from first column?
Thanks for reading!
Nadya | Tech Support Engineer
Telerik team
 answered on 06 Aug 2021
1 answer
253 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
1 answer
96 views

Hello All,

I  have converted my Winforms C# Application to Telerik using the Telerik conversion extension tool in VS 2017 . It is converted but I see the events are not associated with the control even though the code exists in the code behind file.

Is this a known issue?  Any suggestion or help is really appreciated.

Example: A Raddropdown list selected index change event is not tied to the Raddropdown. I see the event in the code behind.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 04 Aug 2021
1 answer
87 views

I have a Listview with CustomVisualItem formatting in IconView.  When the directional keys are tapped or an item is clicked, the SelectItemChanged event is triggered but the selection highlight does not follow.  Since CustomVisualItems are used, do I need to break out the crayons in VisualItemFormatting?

The form contains a RadListView and a RadLabel to display a result.

Thanks!

public RadForm1() { InitializeComponent();

this.radListView1.EnableKineticScrolling = true; this.radListView1.KeyboardSearchEnabled = true; this.radListView1.ViewType = Telerik.WinControls.UI.ListViewType.IconsView; this.radListView1.SelectedItemChanged += new System.EventHandler(this.radListView_SelectedItemChanged); this.radListView1.VisualItemCreating += new Telerik.WinControls.UI.ListViewVisualItemCreatingEventHandler(this.radListView1_VisualItemCreating); this.radListView1.DataSource = JunkData(); } private void radListView1_VisualItemCreating(object sender, Telerik.WinControls.UI.ListViewVisualItemCreatingEventArgs e) { e.VisualItem = new CustomIconVisualItem(); } private void radListView_SelectedItemChanged(object sender, EventArgs e) { RadListViewElement element = sender as RadListViewElement; ListViewDataItem item = element.SelectedItem; if (item == null) return; DataRowView dataRow = (DataRowView)item.DataBoundItem; if (dataRow == null) return; DataRow row = dataRow.Row; radLabel1.Text = row["Title"].ToString(); } private DataTable JunkData() { DataTable dt = new DataTable(); dt.Columns.Add("Title", typeof(string)); dt.Rows.Add("T1"); dt.Rows.Add("T2"); dt.Rows.Add("T3"); return dt; }



class CustomIconVisualItem : IconListViewVisualItem
{
        private LightVisualElement titleElement;
        private StackLayoutPanel stackLayout;

        protected override void CreateChildElements()
        {
            base.CreateChildElements();
            stackLayout = new StackLayoutPanel();
            stackLayout.Orientation = System.Windows.Forms.Orientation.Vertical;
            stackLayout.AutoSize = true;
            titleElement = new LightVisualElement();
            titleElement.NotifyParentOnMouseInput = true;
            stackLayout.Children.Add(titleElement);
            this.Children.Add(stackLayout);
        }

        protected override void SynchronizeProperties()
        {
            this.titleElement.Text = this.Data["Title"].ToString();
        }

        protected override Type ThemeEffectiveType
        {
            get
            {
                return typeof(SimpleListViewVisualItem);
            }
        }
}

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 02 Aug 2021
1 answer
262 views

It seems that after the Validation Provider kicks in on a control - and sets focus to it and displays the 'error' message....

That it keeps the focus on that control and the user cannot click on a different control on the form.

So, for example.

Let's say there are 2 radio buttons - each radio button causes a dropdown to load certain records

The user clicks on the Dropdown - then realizes they needed to click on the 2nd radio button first.

But now, the validation provider won't let them click the 2nd radio button because it maintains focus on the dropdown.

Is there a way to 'release' the focus so that the user can click on the 2nd radio button?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 30 Jul 2021
2 answers
156 views
Hi.

Using control version 2021.2.614.2
VS2019 16.8.3
Windows10

I'm using RadCheckedDropDownList and I get an exception when I click on the text entry and press the BackSpace key.
This also seems to occur in the Demo Application Telerik UI for WinForms R2 2021. 

I tried to disable the BackSpace key, but it didn't work. 
Is there a solution?
Satoshi
Top achievements
Rank 1
Iron
 answered on 29 Jul 2021
1 answer
239 views

I have a form with two TextBox controls with ShowEmbeddedLabel and RepositionEmbeddedLabel enabled. The TextBox font size is 18P and the Embedded Label sizes are 18P and 10P. 

When running, the first textbox with the larger EL looks and works fine.  The textbox with the 10P EL, not so much.  The EL rests in the center of the control, rather than the bottom.  What property have I overlooked to have the 10P EL  align to the bottom of the control rather than hover in the center?

I've tried disabling TextBoxElement.AutoSize and setting its Size, but that really confuses the renderer. Messing the the LightVisualElements, didn't help either. Resizing the control almost works, but the descenders, the 'tails', of letters are clipped then the EL is bottom aligned.

 

Thanks!
        public RadForm1()
        {
            InitializeComponent();

            radTextBox1 = new Telerik.WinControls.UI.RadTextBox();
            radTextBox1.Font = new System.Drawing.Font("Segoe UI", 18F);
            radTextBox1.Location = new System.Drawing.Point(10, 10);
            radTextBox1.Size = new System.Drawing.Size(300, 80);
            radTextBox1.EmbeddedLabelText = "RTB1: 18F x 18F";
            radTextBox1.ShowEmbeddedLabel = true;
            this.Controls.Add(this.radTextBox1);
            radTextBox1.TextBoxElement.Font = new System.Drawing.Font("Segoe UI", 18F);
 


            radTextBox2 = new Telerik.WinControls.UI.RadTextBox();
            radTextBox2.Font = new System.Drawing.Font("Segoe UI", 18F);
            radTextBox2.Location = new System.Drawing.Point(10, 90);
            radTextBox2.Size = new System.Drawing.Size(300, 80);
            radTextBox2.EmbeddedLabelText = "RTB2: 18F x 10F";
            radTextBox2.ShowEmbeddedLabel = true;
            this.Controls.Add(this.radTextBox2);
            radTextBox2.TextBoxElement.Font = new System.Drawing.Font("Segoe UI", 10F);
        }
Stoyan
Telerik team
 answered on 28 Jul 2021
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
DropDownList
Buttons, RadioButton, CheckBox, etc
ComboBox and ListBox (obsolete as of Q2 2010)
ListView
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
Menu
PropertyGrid
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
Tabstrip (obsolete as of Q2 2010)
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
CheckedDropDownList
Rotator
TrackBar
MessageBox
SpinEditor
StatusStrip
CheckedListBox
Wizard
ShapedForm
SyntaxEditor
TextBoxControl
LayoutControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
DataEntry
GroupBox
ScrollablePanel
WaitingBar
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
ColorBox
Callout
FilterView
PictureBox
VirtualKeyboard
NavigationView
Accessibility
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
Flyout
ToolbarForm
NotifyIcon
Rating
TimeSpanPicker
BarcodeView
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
+? more
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?