Telerik Forums
UI for WinForms Forum
1 answer
7 views

Hi! 

My scheduler is in timeline view, and also grouped by resources. Is there a way to modify the day headers and add the name of the day itself there? (see picture attached)

Thanks!

Nadya | Tech Support Engineer
Telerik team
 answered on 25 Apr 2024
2 answers
13 views

Hi,

I found how to put into radlabel a image here: https://www.telerik.com/forums/image-for-label and here is my code:

((TextPrimitive)this.lblTitle1.LabelElement.Children[2].Children[1]).Font = new Font("Roboto", 32, FontStyle.Bold);
ImagePrimitive imgPrimitive = new ImagePrimitive();
this.lblTitle1.RootElement.Children[0].Children.Add(imgPrimitive);
imgPrimitive.Image = WSResourceManager.UiImageProvider.InfoYellowIcon.Get(WSConfigurationManager.GetInstance.GetLargeIconSize());

Now I would like to align the image to the text that is centered (designer):

but as a result I get this (result):

 

How can I align this icon to the text?

 

Nadya | Tech Support Engineer
Telerik team
 answered on 24 Apr 2024
1 answer
14 views

I need to create a grid that looks like this:

In the upper right there is an X that need to be a hyperlink which fires a C# event. I'm preparing the data for the grid like this:

foreach (var item in data)
{
    item.Name = $"<html><span style=\"font-size: 10\">{item.Name} {item.Acct}</span><p>{item.TicklerDesc}</html>";
    item.TicklerDate = $"<html><p></p><span style=\"font-size: 8\">{string.Concat(Enumerable.Repeat("&nbsp;", 22))}X<p></p>{item.TicklerDate}</span></html>";
}

As it stands now the X is useless. The questions is: How do I make it a hyperlink (or fake equivalent) so that I can fire a C# event?

Thanks

Carl

Nadya | Tech Support Engineer
Telerik team
 answered on 24 Apr 2024
1 answer
10 views

This code produces a blank image. Am I missing something?


var radChartView1 = new RadChartView();
radChartView1.AreaType = ChartAreaType.Pie;
PieSeries series = new PieSeries();
series.DataPoints.Add(new PieDataPoint(50, "Germany"));
series.DataPoints.Add(new PieDataPoint(70, "United States"));
series.DataPoints.Add(new PieDataPoint(40, "France"));
series.DataPoints.Add(new PieDataPoint(25, "United Kingdom") { Label = "My Label" });
series.ShowLabels = true;
series.DrawLinesToLabels = true;
series.SyncLinesToLabelsColor = true;
radChartView1.ShowSmartLabels = true;
radChartView1.Series.Add(series);
flowLayoutPanel1.Controls.Add(radChartView1);
radChartView1.ChartElement.UpdateLayout();
var name5 = Path.Combine(_outputBasePath, "data05.png");
ThemeResolutionService.AllowAnimations = false;
radChartView1.ExportToImage(name5, radChartView1.Size, ImageFormat.Png);

Nadya | Tech Support Engineer
Telerik team
 answered on 23 Apr 2024
1 answer
11 views

I am calling a panel from another form so I can re-use it without having duplicate code. This panel has a RadViewGrid, but because it is called outside of its parent form it doesn't seem to call the CellFormatting handle. I am trying to style the cells in code, but backcolor doesn't seem to do anything

'Create new form to display pnlPayment
 Dim FormPayment As Form = New Form
FormPayment.Size = New Size(1070, 652)
FormPayment.Name = "FormPayment"
FormPayment.StartPosition = FormStartPosition.CenterScreen
FormPayment.FormBorderStyle = FormBorderStyle.FixedDialog
FormPayment.ControlBox = False
FormPayment.Controls.Add(FrmCashRegister.pnlPayment)

'dynamically find this. can also be done with FrmCashRegister.pnlPayment.Visible = true but I wrote it like this to be sure and to make my life hard
Dim paymentpanel() As Control = FormPayment.Controls.Find("pnlPayment", False).

paymentpanel(0).Visible = True
FrmCashRegister.RadGridViewPayment.AutoSizeRows = True
FrmCashRegister.RadGridViewPayment.EnableAlternatingRowColor = True
For Each row As Telerik.WinControls.UI.GridViewRowInfo In FrmCashRegister.RadGridViewPayment.Rows
    For Each cell In row.Cells
        cell.Style.DrawFill = True
        cell.Style.ForeColor = Color.White 'works
        cell.Style.BackColor = Color.Blue 'doesn't work
    Next
Next

The cell.Style.ForeColor works, but cell.Style.BackColor does not.

I've tried getting the CellElement and assigning styling there but that doesn't work either.
Nadya | Tech Support Engineer
Telerik team
 answered on 23 Apr 2024
4 answers
21 views

I'm using Visualstudio2022 Dark theme on my program. When I load a fillable PDF to the PDF viewer, the back color of the form fields turns to black when I click on them. 

I tried changing the annotations color and the text color of the form fields, but nothing works.

How do I change the back color from black to white of the form fields on a fillable PDF? 

Hon
Top achievements
Rank 1
Iron
 answered on 19 Apr 2024
1 answer
100 views
Hi 
 I am using gridviewdatetime column in my gridview (winforms). When user click the cell The calendar popup to select the date. The calendar control have two default button 1. Clear 2. Today. I want to diable or remove the Clear button from calendar popup.
Please reply (Urgent)
Karthik
Top achievements
Rank 1
Iron
 answered on 15 Apr 2024
2 answers
23 views

Hi there,

I have a RadRibbonBar which contains a RadSplitButton element and I'm using Windows11Compact Theme.

I have set splitBtn.ArrowPosition = Bottom and ImageAlignment and TextAligment = TopCenter.
I want the image and text to be centered on the button but they are both aligned right. I notice this only happens with the Windows11 themes, and only to the RadSplitButton. The DropdownButton image/text is correctly centered, however I need to use the split button as there is an event triggered when the button portion of the control is clicked.
I have tried searching for other alignment properties in the UI Elements and setting them all to TopCenter but that still does not solve the problem.

Is this the expected behaviour/appearance? And is there a way I can have the image and text centered on the control?

I have attached a screenshot of the issue I am experiencing.

Thank you,
Carmen

Carmen
Top achievements
Rank 1
Iron
 answered on 15 Apr 2024
1 answer
23 views

I'm trying to use the Windows11Compact theme as default for an entire application, using the config below. 


This is a WinForms project in C#, I have the Windows11 theme dll added to the project, and I'm trying to automaticaly apply the Windows11Compact theme for all controls and all forms that will be added in the project. I don't want to set the theme in runtime because I need to see the theme during the design of the application.

With the config shown above the theme is not applied. It only uses the default Telerik theme.

However, if I change to the Windows11 theme the form updates automaticaly as well as any control I add. It also work's with the Fluent Theme for exemple.

The version of telerik I'm using is Telerik for WinForms 2024.1.312.40.

 

Thank you in advance for any answer.

 

Nadya | Tech Support Engineer
Telerik team
 answered on 12 Apr 2024
2 answers
33 views

Hi, 

I'm using RadGridView version 2022.1.222.40.

When the data table I'm using has a lot of data (15.000 for example), when I select an entire column, the cells in SelectedCells collection are normally less than 15.000 (it could be 14996 or 14997) in the SelectionChanged event. With less than 10.000 it seems that works correctly. 

Is there a bug for selected cells when the RadGridView shows more than 10.000 elements?

Regards, 

Evaristo Cuesta.

Nadya | Tech Support Engineer
Telerik team
 answered on 12 Apr 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
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
RichTextEditor
Menu
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
ContextMenu
Spreadsheet
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
Rotator
TrackBar
MessageBox
CheckedDropDownList
SpinEditor
StatusStrip
CheckedListBox
Wizard
ShapedForm
SyntaxEditor
TextBoxControl
LayoutControl
CollapsiblePanel
Conversational UI, Chat
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
Styling
TaskBoard
Barcode
Callout
ColorBox
PictureBox
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
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?