Telerik Forums
UI for WinForms Forum
2 answers
66 views

Hello team,

As said in the title, I have a Chart with a cartesian grid visible and working fine. The problem is when I add a series programmatically and the series data is empty (see img.2): my chart displays the new axis as expected with no values since there is no data for the series, but the grid disappears.

Img.1 : Two series with data. The grid is visible fine.

Img.2: Two series with one empty. The grid disappears.

Nadya | Tech Support Engineer
Telerik team
 answered on 26 Jan 2024
1 answer
784 views

Why do some C# applications have an app.config file and others do not? Both of these solutions were initialized as Visual C# Windows Form Applications.

This one I created in Visual Studio Community version:

This screen capture bit is from a youtube tutorial. I followed along with the instructor in the video and He created it with a menu selection as a Visual C# -> Windows Form Application.

I tried following along with the tutorial and I noticed that the instructor's IDE, Visual Studio Community version, had a Solution Explorer that included the app.config file. I am curious and concerned because I believe system settings can be entered into the app.config file and so his code will be different from mine and my code might not even run at all.

 

Dinko | Tech Support Engineer
Telerik team
 answered on 26 Jan 2024
1 answer
51 views
I am using a gridview, I have a column created without linking to combo type data, in the createcell event I fill the combo list but when selecting an element it is not shown in the column, however its value is taken. Could someone help me now? break your head
Nadya | Tech Support Engineer
Telerik team
 answered on 23 Jan 2024
1 answer
49 views

Hi,

I am adding a custom icon into a floating docking window using this code:

    private void SetHeaderIcon(ToolWindow toolWindow, Icon icon)
    {
      toolWindow.FloatingParent.Icon = icon;
      toolWindow.FloatingParent.ShowIcon = icon != null;
      toolWindow.FloatingParent.FormElement.TitleBar.IconPrimitive.Visibility = icon != null ? ElementVisibility.Visible : ElementVisibility.Collapsed;
    }

The icon is added correctly, but it's not centered. I don't know if it's a problem of the theme, or it's just expected behaviour.

I added 2 screenshots of what I see with a custom icon, and with the default icon.

Is there a way to add margins or center it?

I'm using Telerik for WinForms 2018.3.911.40

Thank you.

Nadya | Tech Support Engineer
Telerik team
 answered on 22 Jan 2024
2 answers
52 views

Hi,

is it possible to add a hidden input in a toast notification xml, like the one in html?

something like:  "<input id=\"AnswerTo\" title=\"Rispondi a...\" defaultInput=\"" + _sender + "\" type=\"text OR hidden\" visible=\"none OR false\">"

The goal I want to achieve is to pass text variables within the ToastNotification preventing editation from the user...

Thank you

Alessandro
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 19 Jan 2024
1 answer
45 views

Is there a way to add Tool Tip Text to the legend items that get generated?  I have Tool Tip Text on the Series object, but I would like it on the Legend Items as well. 

Also, one other question, is there a way to customize how the legend shows the value next to the key?  Right now, our legand keys are "ABC 123".  I would like to add a "-" between the KEY and the COUNT value. 

 

TIA

 

Nadya | Tech Support Engineer
Telerik team
 answered on 19 Jan 2024
2 answers
88 views

Hi,

 

I use Windows Forms as MDI and open some child form.

In one of the forms, I use the RadOverlayManager for Grids to get an Loading Screen.

Before I start the loading of the RadGridView (or something other).

RadOverlayManager.Show(RadGridView1)

And after the loading of the Grid at the end of the sub.


RadOverlayManager.Close()

But after the loading, it selects another MDI Child form, that was opend "before" these form.

Any Ideas whats wrong and how to solve these problem?

(or maybe have another solution as a loading screen/symbol for loading things)

Thank you

 

Nadya | Tech Support Engineer
Telerik team
 answered on 17 Jan 2024
6 answers
87 views

Hello,

I have implemented a custom AppointmentElement and I habe a small display problem with it.

Here is a screenshot: Screenshot

When the area of the appointment gets to small,  the arrow on the right is no longer drawn, but i want the element to always draw it and cut the text first.

Here is my implementation:


internal class CustomAppointmentElement : AppointmentElement
{
    private AppointmentsViewModel _appointmentsViewModel;
    private DockLayoutPanel _outerContainer;
    private StackLayoutElement _container;
    private LightVisualButtonElement _expandCollapseButton;
    private LightVisualElement _icon1;
    private LightVisualElement _icon2;
    private LightVisualElement _icon3;
    private LightVisualElement _timeText;
    private LightVisualElement _summaryText;
    private LightVisualElement _continueArrow;

    protected override void CreateChildElements()
    {
        base.CreateChildElements();
        this.Padding = new Padding(1, 0, 1, 0);

        _outerContainer = new DockLayoutPanel();
        _outerContainer.StretchHorizontally = true;
        _outerContainer.StretchVertically = true;
        _outerContainer.ShouldHandleMouseInput = false;
        _outerContainer.NotifyParentOnMouseInput = true;
        _outerContainer.LastChildFill = true;

        _continueArrow = new LightVisualElement();
        _continueArrow.Image = ArrowRightImage;
        _continueArrow.StretchHorizontally = false;

        _container = new StackLayoutElement();
        _container.Orientation = Orientation.Horizontal;
        _container.Alignment = ContentAlignment.MiddleLeft;
        _container.StretchHorizontally = false;
        _container.StretchVertically = true;
        _container.ShouldHandleMouseInput = false;
        _container.NotifyParentOnMouseInput = true;

        _expandCollapseButton = new LightVisualButtonElement();
        _expandCollapseButton.ShouldHandleMouseInput = true;
        _expandCollapseButton.Margin = new Padding(1, 1, 0, 1);
        _expandCollapseButton.NotifyParentOnMouseInput = false;
        _expandCollapseButton.Alignment = ContentAlignment.MiddleLeft;
        _expandCollapseButton.StretchHorizontally = false;
        _expandCollapseButton.StretchVertically = false;
        _expandCollapseButton.Click += _expandCollapseButton_Click;
        _expandCollapseButton.Image = GetButtonImage(false);

        _icon1 = new LightVisualElement();
        _icon1.ShouldHandleMouseInput = false;
        _icon1.Margin = new Padding(1, 1, 0, 1);
        _icon1.NotifyParentOnMouseInput = true;
        _icon1.Alignment = ContentAlignment.MiddleLeft;
        _icon1.StretchHorizontally = false;
        _icon1.StretchVertically = false;

        _icon2 = new LightVisualElement();
        _icon2.ShouldHandleMouseInput = false;
        _icon2.NotifyParentOnMouseInput = true;
        _icon2.Alignment = ContentAlignment.MiddleLeft;
        _icon2.StretchHorizontally = false;
        _icon2.StretchVertically = false;
        _icon2.Margin = new Padding(2, 1, 0, 1);

        _icon3 = new LightVisualElement();
        _icon3.ShouldHandleMouseInput = false;
        _icon3.NotifyParentOnMouseInput = true;
        _icon3.Alignment = ContentAlignment.MiddleLeft;
        _icon3.StretchHorizontally = false;
        _icon3.StretchVertically = false;
        _icon3.Margin = new Padding(2, 1, 0, 1);

        _timeText = new LightVisualElement();
        _timeText.Alignment = ContentAlignment.MiddleLeft;
        _timeText.ShouldHandleMouseInput = false;
        _timeText.NotifyParentOnMouseInput = true;
        _timeText.StretchHorizontally = false;
        _timeText.StretchVertically = false;
        _timeText.Margin = new Padding(2, 1, 2, 1);
        _timeText.ClipText = true;
        _timeText.TextWrap = false;
        _timeText.AutoEllipsis = true;

        _summaryText = new LightVisualElement();
        _summaryText.Alignment = ContentAlignment.MiddleLeft;
        _summaryText.ShouldHandleMouseInput = false;
        _summaryText.NotifyParentOnMouseInput = true;
        _summaryText.StretchHorizontally = false;
        _summaryText.StretchVertically = false;
        _summaryText.Margin = new Padding(2, 1, 2, 1);
        _summaryText.ClipText = true;
        _summaryText.TextWrap = false;
        _summaryText.AutoEllipsis = true;
        _summaryText.Font = new Font(_summaryText.Font, FontStyle.Bold);

        _container.Children.Add(_expandCollapseButton);
        _container.Children.Add(_icon1);
        _container.Children.Add(_icon2);
        _container.Children.Add(_icon3);
        _container.Children.Add(_timeText);
        _container.Children.Add(_summaryText);

        DockLayoutPanel.SetDock(_container, Telerik.WinControls.Layouts.Dock.Left);
        _outerContainer.Children.Add(_continueArrow);
        DockLayoutPanel.SetDock(_continueArrow, Telerik.WinControls.Layouts.Dock.Right);
        _outerContainer.Children.Add(_container);

        Children.Add(_outerContainer);
    }
}

Hope you could help me solve it.

 

Regards,

Stephan

Stephan
Top achievements
Rank 3
Bronze
Iron
Iron
 answered on 16 Jan 2024
2 answers
331 views
Would it be possible to create combobox (within GridViewComboBoxColumn) with image and text (as it was done for RadDropDownList)?
Nadya | Tech Support Engineer
Telerik team
 answered on 16 Jan 2024
1 answer
46 views

Hi,

I can generate a spreadsheet from stream then visualize it with a radspreadsheet and related ribbon bar, but when I save it, the default extension is always .xls, all I want is to save as default in xlsx (and maybe remove the other file type filters).

Also I was unable to set a default name for the file, how can I do that?

Thank you.

Alessandro

Nadya | Tech Support Engineer
Telerik team
 answered on 16 Jan 2024
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?