Telerik Forums
UI for WinForms Forum
6 answers
928 views
Hello,

I am using Telerik Winform RadMaskedEditBox 2011.3.11.1116.  When using a MaskType "Numeric" and MaxLenght property set to 9 the MaxLenght does not work, it allows me to type more than 9 digits.  I have a need to ensure only numerics are entered but at the same time limit that value to a max of 999999.99.  I don't want the control filled with 00000000 when the position is not in use.

Doesn't seem you can use the two properties together.

Any ideas,

Regards,

Kerry
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 20 Apr 2015
11 answers
231 views
Hello,

i looked at the GridView/Export/ExportMethods Demo.
I used Export to PDF to create a pdf-file.

The created pdf-file looks mostly correct, but there are 2 errors.

Companyname:
1. GROSELLA-Restaurant not correctly exported. The name is written over the next column instead it should be wrapped to the second line.
2. LILA-Supermercado. Same error as no. 1

Kind Regards,

Ramius
Todor
Telerik team
 answered on 20 Apr 2015
2 answers
116 views

Hi,

How do I get a custom context menu to be shown when clicking in a GridView outside of a cell? For example, if there are only a few rows and I click near the bottom of the control? 

-Lou
Lou
Top achievements
Rank 1
 answered on 17 Apr 2015
8 answers
455 views
Hi everyone,
I meet a trouble that I can't multiselect all cells by mouse drag when we create a big table.

My version is 2014.1.402.20, I use radgridview.
e.g.
1. I create 10 by 10 cells table and gridview is a small one, it will show horizon scroll bar and vertical scroll bar.
2. I want to select all cells by mouse drag but not CTRL+Click.
3. I can't select all of them.

Please review my attachment. Thanks.
tony
Top achievements
Rank 1
 answered on 17 Apr 2015
1 answer
223 views

Telerik v2013 "UI for Winforms"

.Net 3.5

Visual Studio 2008

We have a .Net desktop application built using Visual Studio with Telerik UI for WinForms integrated.  We are using the Chartview feature to show user some charts.  However they are not displaying correctly and we cannot identify why.

When we create a chart using the radChartView control, the labels for the bars of the chart sometimes extend outside of the chart frame area (e.g. see fig1).  We want the bar labels to always being contained within the chart frame and never extend outside of this.

To demonstrate better what we require, we have made a mockup using MSChart control to show what we are aiming for (see fig2).

Please advise how we can create what we require using radChartView control?

Dimitar
Telerik team
 answered on 17 Apr 2015
2 answers
648 views

Hi guys, 

I have a RadListView, its ViewType is ListView. I use a custom item of SimpleListViewVisualItem like below.

The problem is that when Item.Text is too long and overflow, ListView has no horizontal scroll to see the full text.

 Is there any way to fix it?

 

public class UnitListVisualItem : SimpleListViewVisualItem
    {
        private LightVisualElement element1;
        private LightVisualElement element2;
        private StackLayoutPanel layout;
 
        protected override void CreateChildElements()
        {
            base.CreateChildElements();
 
            this.layout = new StackLayoutPanel();
            this.layout.EqualChildrenWidth = true;
            this.layout.Margin = new Padding(30, 20, 0, 0);
 
            this.element1 = new LightVisualElement();
            element1.TextAlignment = ContentAlignment.MiddleLeft;
            element1.MinSize = new Size(160, 0);
            element1.NotifyParentOnMouseInput = true;
            element1.ShouldHandleMouseInput = false;
            this.layout.Children.Add(this.element1);
 
            this.element2 = new LightVisualElement();
            element2.TextAlignment = ContentAlignment.MiddleLeft;
            element2.MinSize = new Size(160, 0);
            element2.NotifyParentOnMouseInput = true;
            element2.ShouldHandleMouseInput = false;
            this.layout.Children.Add(this.element2);
 
            this.Children.Add(this.layout);
        }
 
        private bool IsNotZero(ListViewDataItem item, string field)
        {
            return item[field] != null && Convert.ToInt32(item[field]) != 0;
        }
 
        protected override void SynchronizeProperties()
        {
            base.SynchronizeProperties();
            this.AutoSize = true;
            this.AutoSizeMode = RadAutoSizeMode.FitToAvailableSize;
 
            RadElement element = this.FindAncestor<RadListViewElement>();
 
            if (element == null)
            {
                return;
            }
 
            this.Text = "<html><span style=\"color:#141718;font-size:12.5pt;\"> " + this.Data["Name"] + "</span>";
 
            this.element1.Text = "<html><span style=\"color:#010102;font-size:8.5pt;font-family:Segoe UI Semibold;\">" +
                "Mã đơn vị:<span style=\"color:#13224D;font-family:Segoe UI;\">" + this.Data["MaDV"] + "</span>" +
                "<br>Trạng thái:" + (this.IsNotZero(this.Data, "Status") ? "<span style=\"color:#13224D;font-family:Segoe UI;\">" + this.Data["StatusName"] : "<span style=\"color:#D71B0E;\">" + this.Data["StatusName"]) + "</span>" + "</span>";
 
            this.element2.Text = "<html><span style=\"color:#010102;font-size:8.5pt;font-family:Segoe UI Semibold;\">" +
                "Hiệu lá»±c từ   :<span style=\"color:#13224D;font-family:Segoe UI;\">"
                + (this.Data["ValidFrom"] == DBNull.Value ? "" : Convert.ToDateTime(this.Data["ValidFrom"]).ToString("dd/MM/yyyy")) + "</span>" +
                "<br>Hiệu lá»±c đến:<span style=\"color:#13224D;font-family:Segoe UI;\">"
                + (this.Data["ValidTo"] == DBNull.Value ? "" : Convert.ToDateTime(this.Data["ValidTo"]).ToString("dd/MM/yyyy")) + "</span></span>";
 
            this.TextAlignment = ContentAlignment.TopLeft;
        }
 
        protected override Type ThemeEffectiveType
        {
            get
            {
                return typeof(SimpleListViewVisualItem);
            }
        }
    }

D.Snake
Top achievements
Rank 1
 answered on 17 Apr 2015
11 answers
253 views

Hello,

 

I already export my radGridView to PDF with the following code:

  

Telerik.WinControls.UI.Export.ExportToPDF exportPDF = new Telerik.WinControls.UI.Export.ExportToPDF(radGridView);

               

exportPDF.PdfExportSettings.Title = "Title";

exportPDF.SummariesExportOption = Telerik.WinControls.UI.Export.SummariesOption.ExportAll;

exportPDF.ExportVisualSettings = true;
exportPDF.TableBorderThickness = 10;

exportPDF.PdfExportSettings.PageWidth = 600;

exportPDF.PdfExportSettings.PageHeight = 950;

exportPDF.FitToPageWidth = true;

  

but no matter how I set the TableBorderThickness property, there is no difference in the PDF…

 

1. I want to be able to hide the border around my table on every page
2. I want to show the whole Grid ( border around every cell ),

How can I implement these 2 cases?

Regards,


Stefan 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Apr 2015
2 answers
234 views

Hi,

I have a RadListView (ViewType = DetailView) that has a single column of data.

I'd like to make this column take up 100% of the width of the RadListView. How would I do that?

The design properties for the column only seem to allow a fixed pixel width (not percentage).

 Thanks,

 -Lou

Lou
Top achievements
Rank 1
 answered on 16 Apr 2015
1 answer
136 views

I am programatically adding two appointments to a rad scheduler, one with start DateTime in past and one with start DateTime on current date. The reminder only shows the appointment on current date. I also want to reminders for all appointments in the past as well. How can I achieve this.

The business scenario is when a user starts the application it should remind them of all appointments in the past from now immediately and the appointments on today 15 minutes before start.

Code below

Appointment appointment1 = new Appointment(DateTime.Now.AddMinutes(15).AddSeconds(5), new TimeSpan(1, 0, 0));
appointment1.Summary = "Appointment Today";
appointment1.Description = "Appointment Details";
appointment1.Reminder = new TimeSpan(0, 15, 0);
radScheduler1.Appointments.Add(appointment1);

Appointment appointment2 = new Appointment(DateTime.Now.AddDays(-1), new TimeSpan(1, 0, 0));
appointment2.Summary = "Appointment 1 day in past";
appointment2.Description = "Appointment Details";
appointment2.Reminder = new TimeSpan(0, 15, 0);
radScheduler1.Appointments.Add(appointment2);

radSchedulerReminder1.StartReminder();

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 16 Apr 2015
1 answer
159 views

Hi,

I am using raddock control to host dock windows that as a child have a form with a docked gridview, as per picure attached.

 

My aim is to have the dockwindow width equal to the gridview hosted inside the form. I can achieve this the first time the dock window is created, but if the user changes the width of a column in the gridview I cannot figure out how to programmatically change the parent form's width to be equal to the gridview width, and subsequently the dockwindow width to be equal to the hosting the gridview form width.

The second picture attached displays the desired effect, the form having the same width as the gridview, and also the dockwindow hosting the has a similar width.

I would appreciate your input,

 

Regards,

 

George

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 16 Apr 2015
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
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
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
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
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
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?