Telerik Forums
UI for WinForms Forum
0 answers
73 views
As of 2024 Q2, we will deprecate .NET Framework 4.0 and .NET Core 3.1 distributions. This decision is rooted in our dedication to align with Microsoft’s recommended framework versions so that our products leverage the latest advancements in technology, security, and performance.  

We are aligning our product with Microsoft’s lowest-supported framework versions for .NET Framework and .NET, respectively. Please refer to the following blog post: Product Update for Enhanced Performance and Security (telerik.com)

For more information about how to upgrade your project when a new version of the Telerik UI for WinForms suite is released, you can check here: How to Upgrade a Telerik UI for WinForms Project - Telerik UI for WinForms
Nadya | Tech Support Engineer
Telerik team
 updated question on 31 Jan 2024
3 answers
12 views

Hello,

I am wondering if GridView really doesn't have selection mode similar to RowHeaderSelect in WinForms DataGridView, where I can select individual cells clicking on those cells or I can select row by clicking row header cell. I have read documentation and forum, and I am also wondering if somebody else really doesn't have the same question.

For example, I want to delete row only if row is selected, not if only few cells are selected in multiple rows, it's strange behavior for me. Or, second use case, I have more Copy operations depending on selection scope, if row is selected, whole data object is copied to clipboard, if individual cells are selected, just those data as text are copied, if only cells from specific columns are selected, one parameter sub-object is copied etc.

Now, I can get used to this new behavior, but users are used to DataGridView behavior, I think they will be little bit confused. Or, I know when I click to row header cell, all cells in that row are selected (also the hidden ones), so I can check if all cells in row are selected and then consider that row as selected, but it will be more processing.

Nadya | Tech Support Engineer
Telerik team
 answered on 29 Apr 2024
0 answers
1 view

Hello,
I have question about getting / copying formatted data in GridView. How can I get outside of GridView formatted value of cell? Second, how can I copy formatted data generally? I understand GridView uses virtualization and it formats data only for visual cells. But definitely there must be some methods for formatting data, that are at least used for formatting visual cells from underlying data. I have seen more forum threads and few samples in KB and documentation, I know there are Copying and CopyingCellClipboardContent events, but all samples demostrates manual formatting, for example lookup in combo box cell, or short time string for DateTime. I would like to get standard formatting, as it's displayed in GridView.

Maybe I should ask only to getting formatted value programatically, not standard Copy in GridView, but I have seen more samples for this. I was using WinForms DataGridView before, and there is FormattedValue property in cell object. I think there have to be a way how to get formatted value also in GridView, maybe by calling some method of GridView. About Copy, the best for me would be if I can get formatted value and do Copy manually, because I want to copy more data formats, formatted text representation and binary data for underlying data objects.

Btw. I was surprised GridView copies raw data and not formatted, I think standard and expected behavior for user is to copy what you can see, not some raw data.

Marian
Top achievements
Rank 2
Iron
Iron
Iron
 asked on 29 Apr 2024
2 answers
739 views
Hi
I am working on RadGridView in winforms I have added my columns on design view and my last column is a checkbox and adding my datarows in grid by using given code

for (int i = 0; i <= dtPOs.Rows.Count - 1; i++)
                {
  dgPO1.Rows.Add(dtPOs.Rows[i]["CLM0"].ToString(), dtPOs.Rows[i]["CLM1"].ToString(), DateTime.Parse(dtPOs.Rows[i]["CLM1"].ToString()).ToString("dd-MMM-yyyy"));
                }

Now I want to get all rows in which checkbox is checked. and I am using the following code but fail

 for (int i = 0; i <= dgPO1.Rows.Count - 1; i++)
                {
                     bool isChecked = (Convert.ToBoolean(dgPO1.Rows[i].Cells[3].Value));
                   if(isChecked )
                    {
                          ...... my Logic
                     }
                }
But it is not working. Please tell me how I can get the selected checkbox value from RadGridView CheckBox colum.


Nadya | Tech Support Engineer
Telerik team
 answered on 26 Apr 2024
2 answers
15 views

Hello,

I have two problems with selfrefencing hierarchy in GridView. First, my test application is related to this thread, just for info and context, but I am asking question in new thread, as it was recommended to me, and I think this is separate problem not related to original design question.

https://www.telerik.com/forums/gridview---design-of-parameter-editor-with-subitems

I have created more realistic test application (TelerikTestReal in attached project) with new data structures for self referencing hierarchy binding. I can see desired output after program startup. When I add new main item programatically, GridView shows it properly. But, when I change test type of main item and subitems are changed, deleted child rows disappear, but newly added are not shown, as you can see on animation below. After some debugging, I see child rows are added to BindingList bound to DataSource of GridView, I also see ListChanged event of BindingList is properly fired, but GridView doesn't show new child rows. I can show them by calling ResetBindings() method of BindingList. What can be the problem?

The second problem is that I cannot close program after call to ResetBindings() method, I can click close button manytimes, but nothing happens.

Nadya | Tech Support Engineer
Telerik team
 answered on 25 Apr 2024
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
7 views

Hello,

I have question about GridView handling of properties with Browsable(false) attribute. It's expected that when I add this attribute to some property, automatic generation of columns will ignore it. But why when I add this column manually, that column is empty. Is it a bug? I think that attribute means that should not be displayed in PropertyGrid, but it doesn't prevent to read / write property. It's not problem for me, that's just question, I ran into it during some other tests.

But, maybe it's not bug but expected behavior, but when I add this attribute to property used as ID for self referencing hierarchy, program freezes on startup, and I think this is a bug, isn't it?

Dinko | Tech Support Engineer
Telerik team
 answered on 24 Apr 2024
1 answer
13 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
9 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
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
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
Iron
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
Iron
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?