Telerik Forums
UI for WinForms Forum
2 answers
116 views

Hello,

I came across a weird behavior of a winforms application when using MS Windows setting of Display Scale to 125%.

After exporting a radgridview to an Excel file, the application shrinks. Controls' sizes are smaller and Captions don't fit anymore.

See attachments with a state before exporting and after. I also included a sample app. It only happens with a Display Scale larger than 100%.

Best regards,

Tomáš

Tomáš
Top achievements
Rank 1
Iron
 answered on 31 Aug 2021
2 answers
191 views

Hi,

I want to apply two different font styles for the hostwindow title text in Winforms RadDock. For example, If the title is "Tools - Crop", then it should be like below

Tools - Crop

 

Is it possible to achieve this?

 

Thanks

Nadya | Tech Support Engineer
Telerik team
 answered on 30 Aug 2021
1 answer
284 views

Hai EveryOne,

i have a problem from my grafik chart line series..
i want to set no blur if the grafik vertical, but if the line horizontal. the line not blur when zoom..

how this solustionn,,,

tihis is source code section

 

 LineSeries series = new LineSeries();
            series.CategoryMember = "MonthName";
            series.ValueMember = "TotalAsset";
            series.DataSource = m_LineChartList;
            series.PointSize = new SizeF(7, 7);
            series.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality;

            //test
            //series.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias;
            //series.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic;
            //series.CompositingQuality = System.Drawing.Drawing2D.CompositingQuality.HighQuality;
            //series.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit;
            series.Padding = new Padding(20);
            series.IsVisible = true;
            series.LinesToLabelsColor = Color.FromArgb(0, 0, 0);

            series.BackColor = Color.FromArgb(0, 50, 0);
            series.BorderColor = Color.FromArgb(0, 50, 0);

 

 

 

thanks every one

Nadya | Tech Support Engineer
Telerik team
 answered on 30 Aug 2021
2 answers
230 views

I have a radgridview that I've enabled pasting.  Everything works great but for some reason when I right click and hit paste no matter how many rows I'm coping the pasting event fires twice thus duplicating the input rows.

private void RgvSup_Pasting(object sender, Telerik.WinControls.UI.GridViewClipboardEventArgs e)
        {
            Cursor.Current = Cursors.WaitCursor;
            try
            {
                // paste row data
                if (RgvSup.CurrentRow is GridViewNewRowInfo)
                {
                    if (Clipboard.GetText() != string.Empty && Clipboard.GetText() != "")
                    {
                        string[] lines = Clipboard.GetText().Split(new string[] { "\r\n" }, StringSplitOptions.None);
                        try
                        {
                            foreach (string rowInfo in lines)
                            {
                                string[] cellVal = rowInfo.Split('\t');
                                if (cellVal.Length >= 9)
                                {
                                    SUPPLIER ObjSup = new SUPPLIER();
                                    try { ObjSup.SUP_NAME = cellVal[0]; } catch { }
                                    if (cellVal[1].Contains(";"))
                                        cellVal[1] = cellVal[1].Split(';').GetValue(0).ToString();
                                    try { ObjSup.SUP_PUL_CAT_ID = decimal.Parse(cellVal[1]); } catch { ObjSup.SUP_PUL_CAT_ID = null; }
                                    try { ObjSup.SUP_PHONE = ClsCommon.SetPhone(cellVal[2]); } catch { }
                                    try { ObjSup.SUP_PCONT_NAME = cellVal[3]; } catch { }
                                    try { ObjSup.SUP_PCONT_CCELL = ClsCommon.SetPhone(cellVal[4]); } catch { }
                                    try { ObjSup.SUP_ADDRESS = cellVal[5]; } catch { }
                                    try { ObjSup.SUP_CITY = cellVal[6]; } catch { }
                                    if (cellVal[7].Contains(";"))
                                        cellVal[7] = cellVal[7].Split(';').GetValue(0).ToString();
                                    try { ObjSup.SUP_ST_ID = decimal.Parse(cellVal[7]); } catch { ObjSup.SUP_ST_ID = null; }
                                    try { ObjSup.SUP_ZIP = ClsCommon.SetZip(cellVal[8]); } catch { }
                                    ObjSup.SUP_CL_ACTIVE_ID = 1;

                                    MstEnt.eSUPPLIER.Add(ObjSup);
                                }
                            }
                        }
                        catch
                        {
                            MessageBox.Show("Incompatible DataSources");
                        }

                        ClsCommon.SaveMstEnt(MstEnt, "RpurfEditSup.cs", "RgvSup_Pasting");
                        RefreshData();
                        MessageBox.Show("Completed");
                    }
                }
            }
            catch (Exception Ex)
            {
                ClsCommon.WriteAppError(Ex, "RpurfEditSup.cs", "RgvSup_Pasting");
            }
            Cursor.Current = Cursors.Default;
        }

 

Nadya | Tech Support Engineer
Telerik team
 answered on 30 Aug 2021
1 answer
110 views

my actual width is 3.14 inch but the print not in the correct size 

using code

rvInvoiceViewer.PrintReport()

Nadya | Tech Support Engineer
Telerik team
 answered on 24 Aug 2021
1 answer
169 views

Greetings,

I have got some questions about the  GridViewPdfExport object:

Question 1: I set ExportVisualSettings property to true, but it doesn't apply cells' back and fore colors when exporting to PDF. My associated RadGridView's cells are colorful (columns are in different back and fore colors) and I need the GridViewPdfExport object to export the RadGridView customization the same way a RadPrintDocument does.

Question 2: For some of my clients, I'm using Arabic and Persian languages (and fonts) in my RadGridViews. When using GridViewPdfExport object, texts are Spell Backwards . For example, if first column's header text is "نام", it exports it as "م ا ن ". I tired exporting data using ExportToPDF object, Handling the HTMLCellFormatting event as it is documented in the RadFridView PDF export documentations, but I guess it only supports left-to-right languages, or maybe, I'm not using an appropriate Unicode font in this case (I also tried Arial Unicode MS, but the texts are printed like ####-##). What's the solution for the languages I mentioned ?

 

 


Nadya | Tech Support Engineer
Telerik team
 answered on 23 Aug 2021
1 answer
377 views

Greetings,

Is it possible to print a RadPrintDocument as PDF ?

* I know there are some virtual PDF printers that can be installed on a machine and then be chosen as a printer when printing a RadPrintDocument. But I need to use Telerik's components  (or other components) that can print a RadPrintDocument as PDF directly.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 23 Aug 2021
1 answer
247 views

Hi

I'm developing a application with a version of Telerik from 2017 R2, but I want to install a new version 2020 R2.
My question is: The new version is compatible with all controls of the old version?  If not how to I install it without affect my application ?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 23 Aug 2021
1 answer
132 views
I have a windows form with RadTitleBar added to it. When the form is maximized it does not fully get maximized (see attachment). When <em>FormBorderStyle </em>is set to <em>Sizable</em> it does not fully maximize and when set to <em>None </em>the maximize works but the form cannot be resized using the handles. How to overcome this?
Nadya | Tech Support Engineer
Telerik team
 answered on 20 Aug 2021
1 answer
301 views
I have a Telerik.WinControls.UI.Docking.ToolWindow added to RadDock. I want to use the pin/unpin feature and not the docking feature. I want to disable the contextmenu and not allow user to move around the ToolWindow as well. How do I acheive it?
Nadya | Tech Support Engineer
Telerik team
 answered on 19 Aug 2021
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)
Chart (obsolete as of Q1 2013)
Form
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
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
TrackBar
MessageBox
Rotator
SpinEditor
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
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
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
NavigationView
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?