Telerik Forums
UI for WinForms Forum
3 answers
260 views
How can i set min/max size of dropdown?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Aug 2020
1 answer
375 views

I have a windows form in my application which uses the datetime picker.  I have noticed that there is no "Focus" property on the control.  I cannot do the following: 

fromDatePicker.Focus() and force my my user to interact with that control first, other Telerik controls on the form allow me to do this.  

I am using the latest version of the WinForm controls and VS 2019

What am I missing?

Thanks

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Aug 2020
4 answers
418 views
Hi,
I'm trying to use the best fit functionality for ListViews. Im using a list as the datasource like this:

radListView.DataSource = List<Myclass>

and in the BindingCompleted event i do the following:

            foreach (ListViewDetailColumn c in rlv.Columns)
            {
                c.AutoSizeMode = ListViewBestFitColumnMode.AllCells;
            }
       
The columns are not resized at all. Could you provide me with an example of how to use this feature ?

/Thomas
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 14 Aug 2020
13 answers
1.4K+ views
hi,

Can anyone guide me in how to change the scrolling position of the scoll bar of radGridView  by code behind. 

regards,
Shewta
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Aug 2020
1 answer
146 views

Hello,

I have problem with completion window location when vertical scroll of SyntaxEditor is not at start position. In that case position of completion window is at the top of control, in same case, somewhere else. I reproduced such behavior on minimal example which I am sharing with you right now.

 

using System.Windows.Forms;
using Telerik.WinForms.Controls.SyntaxEditor.UI.IntelliPrompt.Completion;
 
namespace WindowsFormsApp1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
 
            ICompletionInfoCollection completionInfoCollection = new CompletionInfoCollection
            {
                new CompletionInfo("AAA", "A description."),
                new CompletionInfo("BBB", "B description."),
                new CompletionInfo("CCC", "C description.")
            };
 
            var completionListWindow = this.radSyntaxEditor1.SyntaxEditorElement.IntelliPrompts.CompletionListWindow;
            completionListWindow.Presenter.CompletionListItems = completionInfoCollection;
        }
 
        private void radSyntaxEditor1_DocumentContentChanged(object sender, Telerik.WinForms.SyntaxEditor.Core.Text.TextContentChangedEventArgs e)
        {
            Telerik.WinForms.Controls.SyntaxEditor.UI.CompletionListPopup completionListWindow = this.radSyntaxEditor1.SyntaxEditorElement.IntelliPrompts.CompletionListWindow;
            completionListWindow.Show();
            completionListWindow.Refresh();
        }
 
    }
}

As you can see in the images, in the first two cases everything is ok, but in the third image, when the vertical scroll is not at the start position (moved a little bit), the completion window has a completely wrong place.

Thank you for your answers.
Stoyan
Telerik team
 answered on 12 Aug 2020
3 answers
184 views

Is it possible to export the whole diagram as an image?

Image image = this.radDiagram1.ExportToImage(new Size(10000, 5000));
Clipboard.SetImage(image);

This only exports the visible area which gives me scrollbars which is not what I need.  I want the entire diagram as an image.

Thanks

Paul

 

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 12 Aug 2020
1 answer
3.7K+ views

Hello,

Already using back color of textbox for validation. I'm trying to set border color for a different flag on the same textbox, but this coloring goes back to default color when the control is not in focus using TextBoxElement.Border.ForeColor. Would like to have the backcolor stay all the time; which I could achieve with RootElement.BackColor, but this goes away when the control is in focus.

 

How can I achieve a static border color?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 12 Aug 2020
1 answer
301 views

My grid has a checkbox column "MyColumn" that has EnableHeaderCheckBox enabled.  That column is disabled in the following manner using the CellFormatting event, code follows(did it this way due to need to show a tool tip).  When I click on the header check box, every check box, including the disabled ones, are checked.  I don't want those that are disabled to be checked.  I've tried using the event HeaderCellToggleStateChanged to modify the toggle value of the checkbox, it's not taking effect.  How can I do this?

 

 private void MyGrid_CellFormatting(object sender, CellFormattingEventArgs e)
        try
            {

                e.CellElement.RowElement.ToolTipText = @"";
                e.CellElement.Enabled = true;

            if (!(bool)e.Row.Cells["Condition1"].Value)
                {
                    e.CellElement.Enabled = false;
                    e.CellElement.RowElement.ToolTipText = @"Disabled condition 1 ";
                }
              

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 11 Aug 2020
1 answer
126 views
Is there a way to export diagram to a vector type image? I only see options to export to bitmap. Also, export only includes visible image, anything that was generated outside of initial view (such as negative positions) are not rendered.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 11 Aug 2020
2 answers
144 views

Hi there,

I'm having a problem loading data in gridview. It's taking too long, like 2 seconds for 5-10 rows.

I think the main problem is where i assign the bindingsource.

I'd like to know if there is any faster way to do this.

I'm using progress 4gl and OE 12.1.

I'll attach a file of what i'm doing.

 

Thanks.

 

Hugo
Top achievements
Rank 1
 answered on 10 Aug 2020
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
ListView
ComboBox and ListBox (obsolete as of Q2 2010)
Form
Chart (obsolete as of Q1 2013)
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
PropertyGrid
Menu
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
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?