Telerik Forums
UI for WinForms Forum
2 answers
74 views
Its happen when I use FilterView by the datagrid and entire column is empty (null)
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 30 Dec 2022
2 answers
47 views

Hi,

when I want to export datagrid to pdf I get error:

Invalid XHTML. RadGrid has to render correct XHTML in order to export to PDF. Parse error: char (hexadecimal value 0x1F) is an invalid character.: row 34411, position 13 at line: <td>60045685_0002</td>

Problem is in value 60045685_0002 - export without this value is correct.

Radek
Top achievements
Rank 1
Iron
Iron
 answered on 29 Dec 2022
2 answers
129 views

I want to rename column, for example from gridViewTextBoxColumn9 to col_Name and then get access from code.

Instead dataGridView1.Columns["col_Name"].IsVisible = true I want to write col_Name.IsVisible = true

It is possible?

Radek
Top achievements
Rank 1
Iron
Iron
 answered on 29 Dec 2022
2 answers
184 views

Hi,

I just noticed a terrible bug when trying to bind a list of business objects on a DropDownList :

Setting the DataSource erases both property values previously set on the designer.

Setting the DisplayMember through code works but as soon as I try to set ValueMember, it erases DisplayMember and doesn't set ValueMember either !!

        ddlLines.DataSource = lineService.GetAllLines();
        ddlLines.DisplayMember = nameof(Line.LineName);
        ddlLines.ValueMember = nameof(Line.LineId);


Here is the class :

public class Line
{
    [BrowsableAttribute(false)]
    public int LineId { get; set; }

    [DisplayName("Souche")]
    [Column(Order = 0)]
    public string LineName { get; set; }
}

This happens on a DropDownList inserted on a form and also inside a RibbonControl

Is this serious ??

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 21 Dec 2022
1 answer
202 views
As of the beginning of December, the RadMap is failing to get maps from the BingRestMapProvider and the OpenStreetMapProvider. When registering the provider the connection is getting forcibly closed on the server side. Has something changed? Is there an ETA on when the server side issue will get resolved?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 21 Dec 2022
1 answer
1.0K+ views

Hi all.

Question: is it possible to translate (back and forth) mouse coordinates in RadPdfViewer to PDF coordinates on the relative page?

I do not need location inside Telerik internal document representation nor on screen but on the PDF representation for interoperability with other tools.

What I mean by PDF coordinates: a coordinate system where the unit is 1/72th of an inch, having the origin (coordinate 0,0) at the bottom left of the page, and X Y increase toward the top right corner, for example an A4 bottom left coordinates are (0,0) top right  (597.6 , 842.4) 

The desired effect would be something like

 

public (int pageNo, float pdfX, float pdfY) GetPdfCoordinates(RadPdfViewer viewer,  Point mouseEventLocation){
public (int pageNo, int X, int Y) GetViewerCoordinates(RadPdfViewer viewer, int page, float pdfX, float pdfY);

Reasons: I am currently using other libraries only for that specific purpose but the telerik pdf viewer is just as good except for this important feature that allows software to interoperate with third parties PDF tools.

Thank you all.

 

Dinko | Tech Support Engineer
Telerik team
 answered on 20 Dec 2022
1 answer
87 views

Hello,

I want to make editor for editing function list, something like screenshot below. I would like to ask for an advice, what's the best approach to do this. I have idea to use GridView with self referencing, using some background class for representation of this structure, and massive cell parsing/formatting/validating for handling second column with parameters, validating different types of parameters, coloring of invalid values etc. Or, it's just two level structure, is it better to use "normal" hierarchy, main level for functions, and second level for different parameter? I haven't tried anything yet, just asking for advice for the best approach, I think it will take more time to do this.

And second question, I was playing a little with hierarchies some time ago, and most scenarios needed data binding for correct hierarchy. Is it possible to do self referencing without data binding?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 19 Dec 2022
1 answer
91 views

On a brand new Winforms project,

 

1/ Added 1 RadDock, Dock = Fill

2/ In RadDock Advanced Layout Designer, Add several toolwindows using Dockfill new ToolWindow

3/ Save and close Designer

4/ Run Project

When any toolwindow is moved to attempt to dock it freezes with the compass showing but no windows can be moved or docked. Attached image shows frozen state. No errors or anything raised

This is in Windows 11 with net6.0. Is this a bug or am I doing something wrong?

Dinko | Tech Support Engineer
Telerik team
 answered on 16 Dec 2022
1 answer
604 views

Hi,

I'm getting weird / unexpected behaviour when using the masked edit box configured to handle IP Addresses.

So using the latest Demo Application, I open up the Masked Edit Box, and in the IP edit box I type in 11.22.33.44

I then double click and highlight the 44 part, and type 6 to replace the 44 with a single 6, however the following is displayed

After clicking on OK this then changes to show the ip address as 11.22.33.255 It seems that clicking on 6 does not replace the 44 but gets inserted at the start of the element. Is there a workaround for this behaviour ?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 15 Dec 2022
1 answer
104 views

Winforms, c#, version 2022.3.1109.40,

I know it must be me, but I'm testing gradient fill on a radpanel, but theres no change in appearance at either design or run time

Here's my extract from the designer file. GradientFill is set to linear which is the default.

private void InitializeComponent()
    {
      this.radPanel2 = new Telerik.WinControls.UI.RadPanel();
      ((System.ComponentModel.ISupportInitialize)(this.radPanel2)).BeginInit();
      this.SuspendLayout();
      //
      // radPanel2
      //
      this.radPanel2.Location = new System.Drawing.Point(112, 57);
      this.radPanel2.Name = "radPanel2";
      this.radPanel2.Size = new System.Drawing.Size(218, 107);
      this.radPanel2.TabIndex = 1;
      ((Telerik.WinControls.Primitives.FillPrimitive)(this.radPanel2.GetChildAt(0).GetChildAt(0))).BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(198)))), ((int)(((byte)(241)))), ((int)(((byte)(79)))));
      ((Telerik.WinControls.Primitives.FillPrimitive)(this.radPanel2.GetChildAt(0).GetChildAt(0))).BackColor3 = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(238)))), ((int)(((byte)(155)))), ((int)(((byte)(64)))));
      ((Telerik.WinControls.Primitives.FillPrimitive)(this.radPanel2.GetChildAt(0).GetChildAt(0))).BackColor4 = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(74)))), ((int)(((byte)(228)))), ((int)(((byte)(243)))));
      ((Telerik.WinControls.Primitives.FillPrimitive)(this.radPanel2.GetChildAt(0).GetChildAt(0))).NumberOfColors = 4;
      ((Telerik.WinControls.Primitives.FillPrimitive)(this.radPanel2.GetChildAt(0).GetChildAt(0))).GradientStyle = Telerik.WinControls.GradientStyles.Linear;
      ((Telerik.WinControls.Primitives.FillPrimitive)(this.radPanel2.GetChildAt(0).GetChildAt(0))).PaintUsingParentShape = false;
      ((Telerik.WinControls.Primitives.FillPrimitive)(this.radPanel2.GetChildAt(0).GetChildAt(0))).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(244)))), ((int)(((byte)(32)))), ((int)(((byte)(32)))));
      //
      // Form1
      //
      this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
      this.ClientSize = new System.Drawing.Size(800, 450);
      this.Controls.Add(this.radPanel2);
      this.Name = "Form1";
      this.Text = "Form1";
      ((System.ComponentModel.ISupportInitialize)(this.radPanel2)).EndInit();
      this.ResumeLayout(false);

    }

 

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Dec 2022
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?