Telerik Forums
UI for WinForms Forum
1 answer
380 views

Hello,

Some of my groupbox have no header text. I've found out a little spot in place of header in Office2007 theme even there is no header text.

In order to figure out by myself, I've compared most of telerik themes. Please see what I've found in the attach picture.

How can I hide the little spot (or the little blank in some theme)?

Is this normal? Any idea? 

Thank you by advance.

Dimitar
Telerik team
 answered on 20 Dec 2018
2 answers
457 views

Hello.
I try to display long description text with nice word wrapping using RadLabel
To do that I set AutoSize=true but control Width of RadLabel setting MaximumSize.
I set the maximum size and recalculate it every time Form's size changes.

Everything works fine until you change the DPI settings in the system. 
When you do this and change MaximumSize property at runtime my value will be multiplied by the scaling value.
And since I use form size (which is already scaled) I got doubled scale.
For example if I set scaling 150% my value be multiplied by 1.5.

Below I gave examples of my code and screenshots from different DPI. 

100% https://clip2net.com/s/3YxZaSZ
150% https://clip2net.com/s/3YxZom6
200% https://clip2net.com/s/3YxZees

I use Telerik 2018.3.1016.20 with .Net 3.5 
I very much rely on your help and advice.

using System;
using System.Drawing;
using Telerik.WinControls.UI;
 
namespace DesignExamples.BugsForTelerik
{
    public class Form1 : RadForm
    {
        private RadLabel radLabel1;
        private RadLabel radLabel2;
 
        public Form1()
        {
            InitializeComponent();
        }
 
        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
            this.radLabel1 = new Telerik.WinControls.UI.RadLabel();
            this.radLabel2 = new Telerik.WinControls.UI.RadLabel();
            ((System.ComponentModel.ISupportInitialize)(this.radLabel1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.radLabel2)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
            this.SuspendLayout();
            //
            // radLabel1
            //
            this.radLabel1.Dock = System.Windows.Forms.DockStyle.Top;
            this.radLabel1.Location = new System.Drawing.Point(0, 0);
            this.radLabel1.Name = "radLabel1";
            this.radLabel1.Size = new System.Drawing.Size(2054, 18);
            this.radLabel1.TabIndex = 0;
            this.radLabel1.Text = resources.GetString("radLabel1.Text");
            //
            // radLabel2
            //
            this.radLabel2.Dock = System.Windows.Forms.DockStyle.Top;
            this.radLabel2.Location = new System.Drawing.Point(0, 18);
            this.radLabel2.Name = "radLabel2";
            this.radLabel2.Size = new System.Drawing.Size(81, 18);
            this.radLabel2.TabIndex = 1;
            this.radLabel2.Text = "MaximumSize: ";
            //
            // Form1
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(504, 270);
            this.Controls.Add(this.radLabel2);
            this.Controls.Add(this.radLabel1);
            this.Name = "Form1";
            //
            //
            //
            this.RootElement.ApplyShapeToControl = true;
            this.Text = "Form1";
            this.Resize += new System.EventHandler(this.OnResize);
            ((System.ComponentModel.ISupportInitialize)(this.radLabel1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.radLabel2)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this)).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();
 
        }
 
        private void OnResize(object sender, EventArgs e)
        {
            var maximumSize = new Size(Width - radLabel1.Margin.Horizontal, 0);
            radLabel1.MaximumSize = maximumSize;
            radLabel2.Text = $@"maximumSize: {maximumSize}
radLabel1.MaximumSize: {radLabel1.MaximumSize}";
        }
    }
}
Jeremy
Top achievements
Rank 1
 answered on 19 Dec 2018
4 answers
151 views

Is there a way to highlight the border of the currently selected thumbnail on the pdf viewer?

I simply want my users to know which thumbnail they've clicked on (which page they are on) since a lot of the documents they view look the same from page to page.

Thanks.

Hristo
Telerik team
 answered on 19 Dec 2018
3 answers
167 views

I am using the rad multi combox box and it work rather well on touch I just want to make the blue area wider so it looks like they touch it with their thumb its very small at present and easy for them to miss.

 

Hristo
Telerik team
 answered on 19 Dec 2018
0 answers
167 views

Hello,

There are images with background themes.
I need to implement a dropdownlist with images only.
All images have the same size 150x50, so when I press the down button it should show the full item list. Those may be elements of an imageList.
I tried Telerik RadDropBownButton, and RadButtons as items.

The attached picture is what I have now. As I can see the left is the position and place for the image, and there is still small place for text. There is no text, only image. How to hide the text place, to keep only image?

Роберт
Top achievements
Rank 1
 asked on 19 Dec 2018
2 answers
102 views

why the background-color remains the same although another line was selected.
this only applies if foreColor is changed.

                    if (Convert.ToDateTime(cell.Value.ToString()) != Convert.ToDateTime(e.Row.Cells[ColumnTitle.GridOperation.Liefertermin].Value.ToString())) {
                        cell.NumberOfColors = 1;
                        cell.DrawFill = true;
                        cell.ForeColor = ColorDeltaLieferterminAbteilungstermin.FColor;
                        cell.Font = new Font(DefaultFont, FontStyle.Bold);
                    } else {
                        cell.Image = null;
                        cell.DrawFill = false;
                        cell.ResetValue(LightVisualElement.DrawFillProperty, ValueResetFlags.Local);
                        cell.ResetValue(LightVisualElement.ForeColorProperty, ValueResetFlags.Local);
                        cell.ResetValue(LightVisualElement.NumberOfColorsProperty, ValueResetFlags.Local);
                        cell.ResetValue(LightVisualElement.BackColorProperty, ValueResetFlags.Local);
                    }

thanks andre

Andre
Top achievements
Rank 1
 answered on 18 Dec 2018
2 answers
101 views

I've done some searching but was unable to find anything to help my specific case. I am using an AutoCompleteEditor class to enable drop down textboxes on my grid view, but I want to limit the token to 1 min and max. How can I do this? You may ask why I am using this instead of a ComboBoxColumn. The answer is: I have been instructed to not show any drop down arrows. 

Here is the class that I've taken from forums:

  class AutoCompleteEditor : RadTextBoxControlEditor
    {
        protected override Telerik.WinControls.RadElement CreateEditorElement()
        {
            return new RadAutoCompleteBoxElement();
        }

        public override void OnKeyDown(System.Windows.Forms.KeyEventArgs e)
        {
            RadAutoCompleteBoxElement element = this.EditorElement as RadAutoCompleteBoxElement;

            if (element.IsAutoCompleteDropDownOpen)
            {
                return;
            }

            base.OnKeyDown(e);
        }
    }

 

I am trying to validate data entered into the cell, but it looks like end users are able to select multiple values. I want to completely disable this ability and allow only a single value to be selected.

It would be much simpler to use a regular ComboBoxColumn, but I am unable to convince decision makers other wise.


Mimi
Top achievements
Rank 1
 answered on 18 Dec 2018
3 answers
411 views
Hi.

An exception is thrown when I reset my data source (first to null to clear it), but I dont know when it really happens. It happens very seldom but it does happen.

Object reference not set to an instance of an object.
   at Telerik.WinControls.UI.TableViewDefinitionBase.GetRowHeight(GridViewRowInfo rowInfo, IGridView gridView)
   at Telerik.WinControls.UI.GridTableBodyElement.GetRowHeight(GridRowElement row, Single y, SizeF availableSize)
   at Telerik.WinControls.UI.GridTableBodyElement.ArrangeOverride(SizeF finalSize)
   at Telerik.WinControls.RadElement.ArrangeCore(RectangleF finalRect)
   at Telerik.WinControls.RadElement.Arrange(RectangleF finalRect)
   at Telerik.WinControls.Layouts.ContextLayoutManager.UpdateLayout()
   at Telerik.WinControls.Layouts.ContextLayoutManager.UpdateLayoutCallback(ILayoutManager manager)

Thanks,
-j
Dimitar
Telerik team
 answered on 18 Dec 2018
3 answers
548 views

Hello everyone,

I've built an application using winforms (c++) and Telerik and when i run it from the computer i made it on, it works with no problems. However once i copy it over to my laptop, the .exe file simply won't run. No error messages, it just doesn't open. I have tried it on another computer and got the exact same problem.

I followed the guide here: https://docs.telerik.com/devtools/winforms/deployment-and-distribution/application-deployment

All the .dll files are in the same folder as the .exe and yet it still does not work. Has anyone had this problem before and would they be able to help me fix this please?

Thank you!

Dimitar
Telerik team
 answered on 17 Dec 2018
3 answers
129 views

     I have a control RadMultiColumn Control on my form as you can see here its showing Telerik.WinControls.UI.GridViewDataRowInfo in the text box however when selecting the option it then throws a null statement.

            dpStockSelection.DataSource = _sageManager.ProductFetchAll();            

public List<Product> ProductFetchAll()
      {
 
          if (!IsConnected)
              throw new Exception("Not connected to Sage");
 
          List<Product> products = new List<Product>();
          SageDataObject230.IStockRecord sageStockRecord = (SageDataObject230.IStockRecord)_workSpace.CreateObject("StockRecord");
 
          try
          {
              if (sageStockRecord.MoveFirst())
              {
                  do
                  {
                      products.Add(CreateProduct(sageStockRecord));
 
                  } while (sageStockRecord.MoveNext());
              }
          }
          finally
          {
              sageStockRecord = null;
          }
 
          return products;
      }
David
Top achievements
Rank 1
 answered on 17 Dec 2018
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)
Form
Chart (obsolete as of Q1 2013)
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
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
SplashScreen
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?